MATLAB Online에서 열기 Well, I think that in addition to calculating a cummulative integration you also should/need to extract the limits over which you have non-nan values, something like this: fori2 = 1:size(SALT,2) i1 = find(isfinite(SALT(:,i2))); ...