Advertisement
Guest User

Scilab, tp07 trace script

a guest
Jan 2nd, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.32 KB | None | 0 0
  1. //trace
  2. t=[0;1;2]
  3. y=[1;3;7]
  4. T=linspace(t(1),t($),1000)';
  5. A=constrpoly(t)
  6. x=mcnorm(A,y)
  7. A=constrpoly(T)
  8. Y=A*x
  9. plot(t,y,'.r')
  10. plot(T,Y)
  11.  
  12.  
  13. t=linspace(0,2,9)'
  14. y =[1, 1.7, 1.95, 1.8, 3., 3.6, 4.45, 5.9, 6.6]'
  15. T=linspace(t(1),t($),1000)'
  16. A=constrpoly(t)
  17. x=mcnorm(A,y)
  18. A=constrpoly(T)
  19. Y=A*x
  20. plot(t,y,'.r')
  21. plot(T,Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement