'vector interpolation with a loop
I am using interp1 to interpolate the length of a vector A for a range of thinner values to originate an array with all my new interpolated vectors. I mean that if n=1:21, I want to interpolate my vector A for a value v=1:0.01*n:length(A) to originate an array with 21 rows corresponding to the interpolated vectors. I want to do this using a loop. Someone can help me?
for n=1:21
v=1:0.01*n:length(A);
vh=1:1:length(A);
sam_int_pre=interp1(vh,length(A),v);
end
thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
