Lab13 - >> plot(t,x,'r:p'), hold on...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 1 A = [-0.3 0 0.1; 0.1 -0.1 0; 0 0.1 -0.1] [P,D]=eig(A) -inv(A)*[2; 0; 0] [0; 0; 5]-ans inv(P)*ans c=ans C= [c(1) 0 0; 0 c(2) 0; 0 0 c(3)] Q=P*C - - - - - - + - - - = - - - t t t e e e z y x 0382 . 0 2000 . 0 2618 . 0 2361 . 12 15 7639 . 7 5623 . 7 15 5623 . 12 6738 . 4 15 3262 . 20 5 10 10 Exercise 2 t=0:0.5:100; >> X=10+Q*[exp(-0.02618*t); exp(-0.2000*t); exp(-0.0382*t)]; >> x=X(1,:); y=X(2,:); z=X(3,:);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> plot(t,x,'r:p'), hold on >> plot(t,y,'g:x'), plot(t,z,'m:v'), hold off Exercise 3 t=0:2:100; >> X=10+Q*[exp(-0.02618*t); exp(-0.2000*t); exp(-0.0382*t)]; >> x=X(1,:); y=X(2,:); z=X(3,:); >> plot(t,x,'r:p'), hold on >> plot(t,y,'g:x'), plot(t,z,'m:v'), hold off Exercise 4 The minimum amount of salt in tank C is achieved at time 10;...
View Full Document

Page1 / 2

Lab13 - >> plot(t,x,'r:p'), hold on...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online