Evaluate first column data, set remaining columns to zero based on first column value.

I have a matrix of data, several rows, 4 columns and I want to look at the first column value and if it is above or below a certain value, set all the remaining columns in that row to zero. Sounds simple, but struggling to figure it out.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by