Advertisement
lossyy

scilab 5_4 (stl spline)

Mar 27th, 2021
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. vX=[-0.3 0.1 0.5 0.9 1.3 1.7 2.1];
  2. vY=[-1.3 2.2 3.5 5.8 7.2 6.0 5.8];
  3.  
  4. plot(vX,vY)
  5. d=splin(vX,vY);
  6. S=interp(-0.3:0.01:2.1,vX,vY,d);
  7. plot2d(vX',vY',-1);
  8. plot2d((-0.3:0.01:2.1)',S',2,'000')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement