Info

This question is closed. Reopen it to edit or answer.

Selective replacement of cell elements into NaN based on some conditions

2 views (last 30 days)
I have an array of cells m = 1*36 cells.
Each cell has n1*1, n2*1,n3*1......n36*1 double elements (each cell is a column vector of different lengths,n1,n2...n36 etc)
I wish to retain the cells where ni (i=1 to 36) > =200 and for cells where ni<200, I want to replace by NaN
I shall be grateful if I have some direction in this regard.
Thanks in advance.

Answers (0)

Community Treasure Hunt

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

Start Hunting!