Removing nan values inside cells of a cell array
Show older comments
I have a cell array that looks like this:

Cells in column 1 would look similar to this with nan values mixed values of salinity:

Column 2 is depth values from 1 and onwards, like this:

Is there any way to remove the nan values in column 1 and the corresponding values in column 2?
I've been trying to search for it but haven't found a way that I could get to work.
Accepted Answer
More Answers (0)
Categories
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!