MATLAB: How can i extrapolate the first 15 values of this vector

for i=1:50 v(i)=exp(i/85)*sin(i/9) end disp('v') v

v(i)=e^(i/85)*sin(i/9); i=1:50

Best Answer

No loops needed lookinto interp1() with "extrapolate" method:
x=1:50;
v=exp(x/85).*sin(x/9);
Related Question