Advertisement
Alx09

Untitled

Mar 28th, 2021
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. %regulator
  2. Kr=0.2;
  3. Ti=25*Kr/(10*Kr+1)+0.5
  4.  
  5. %proces
  6. num=[10];
  7. den=[5 2 1];
  8. [A,B,C,D]=tf2ss(num,den)
  9. C1=[C;1 0;0 1]
  10. D1=[D;0;0]
  11.  
  12. %ci
  13. x0=linsolve(C,10);
  14. x30=1;
  15.  
  16. %simulare+grafice
  17. tf=50;
  18. sim('labS5_simulare')
  19. plot(w.time,w.data,y.time,y.data,c.time,c.data)
  20. hold on
  21. plot(x1.time,x1.data,':k',x2.time,x2.data,':b',x3.time,x3.data,':g')
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement