for
i=1:10950
z(i)=spline(HP(:,1),HP(:,2),i);
end
z is a matrix
whose rows are all the interpolated numbers from 1 to 10950.
My
problem is that it costs a lot of time to implement or
execute.
There is a similar function more quick or fast to
produce similar results?
Read the
help for spline, it indicates that the 3rd argument can be a
vector
help
spline
N =
10950;
z = spline(
HP(:,1), HP(:,2), 1:N )