help diary
DIARY Save text of MATLAB session.
DIARY file_name causes a copy of all subsequent terminal input
and most of the resulting output to be written on the named
file. DIARY OFF suspends it. DIARY ON turns it back on.
DIARY, by itself, toggles the diary state.
Use the functional form of DIARY, such as DIARY('file'),
when the file name is stored in a string.
___________________________________________________________________
zeta=0.1;omegan=10;A=[0 1; -omegan^2 -2*zeta*omegan]
A =
0 1
-100 -2
___________________________________________________________________
eig(A)
ans =
-1.0000 + 9.9499i
-1.0000 - 9.9499i
___________________________________________________________________
B=[0 1]';C=[1 0];D=[0];sys1=ss(A,B,C,D);
step(sys1)
print fig1.jpg
___________________________________________________________________
grid
print fig2.jpg
___________________________________________________________________
zeta=1.1;omegan=10;A=[0 1; -omegan^2 -2*zeta*omegan]
A =
0 1
-100 -22
___________________________________________________________________
eig(A)
ans =
-6.4174
-15.5826
___________________________________________________________________
B=[0 1]';C=[1 0];D=[0];sys1=ss(A,B,C,D);
step(sys1)
grid
print fig3.jpg
diary