Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. echo off;
  2. global kp tp omega a;
  3. a=2;kp=2;omega=0.5;tp=
  4. [t,y]=ode23('ord1',[t0 tf], y0 );
  5.  
  6. for i=1:length(t);
  7. uc(i)=a*sin(omega*t(i));
  8. end;
  9. clf;
  10. plot(t,y,'-r', t, uc, '-b');
  11. grid;
  12. title('rsp sist ord 1 ');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement