Advertisement
Coriic

Untitled

Dec 5th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. %Zadanie 2
  2. imie='Kamil';
  3. nazwisko='Sobolewski';
  4. A=[0,1; -length(imie), -length(nazwisko)];
  5. B=[0;1];
  6. C=[1,0;0,1];
  7. h=0.5;
  8. t=sym('t');
  9. A1=expm(h*A);
  10. B1=double( int( expm( h*A )*B, t, 0, h ) );
  11. C1=C;
  12. sim('model3');
  13. i=1:h:11;
  14. hold on;
  15. plot(i, x_d_2(:,2), 'o');
  16. plot(x_c_2.Time, x_c_2.Data(:,2));
  17. hold off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement