Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %Zadanie 2
- imie='Kamil';
- nazwisko='Sobolewski';
- A=[0,1; -length(imie), -length(nazwisko)];
- B=[0;1];
- C=[1,0;0,1];
- h=0.5;
- t=sym('t');
- A1=expm(h*A);
- B1=double( int( expm( h*A )*B, t, 0, h ) );
- C1=C;
- sim('model3');
- i=1:h:11;
- hold on;
- plot(i, x_d_2(:,2), 'o');
- plot(x_c_2.Time, x_c_2.Data(:,2));
- hold off;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement