Dear all,I have
A={
0.2560 0.2680 0.0504 14.0985 0.11282.5852 0.3220 14.0985 2.5852 0.2938 0.2560 0.2680 0.0504 14.0985 0.1128 2.5852 0.3220 14.0985 2.5852 0.2938 0.2560 0.2680 0.0504 14.0985 0.1128 2.5852 0.3220 14.0985 2.5852 NaN};
I want to replace the last value via extrapolation.
I tried
inpaint_nans(cell2mat(A),2) but I got: Subscript indices must either be real positive integers orlogicals. Error in inpaint_nans (line 239) fda(nm,[nm,nm-1,nm-n])=[-2 1 1];
Is there any other way to replace NaN via extrapolation
thanks
Best Answer