I'm trying to convert
53 96 8748 94 NaN49 95 NaN51 98 NaN52 99 NaN55 100 NaN
to
1 2 31 2 NaN1 2 NaN1 2 NaN1 2 NaN1 2 NaN
The best I can do is this, which of course fills each column (including the NaNs).
for a = 1:size(y,2)for b = a y(:,a) = b;endend
If anyone could point me toward a function that could work that would be very helpful. I've tried ~isnan(y) and others but they only allow one input argument.
Best Answer