Why does INTERP1 in MATLAB 6.5 (R13) give different result as compared to MATLAB 6.1(R12.1)?
If a set of data consists of INF as a point, then INTERP1 gives all zeros in MATLAB 6.5 (R13). The sample code below illustrates this point:
interp1([0 .99 1.01 2 inf],[0 0 1 1 1],.5:1:2.5)
The above results
ans = 0 0 0
Best Answer