{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

book examples - Chapter 1 State-Space Description-J = 1 b =...

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

View Full Document Right Arrow Icon
%------------------------------------------------- % Chapter 1. State-Space Description %------------------------------------------------- J = 1; b = 4; kR = 40; A = [0 1;-kR/J -b/J]; % Define the % state-space % realization B = [0;1/J]; C = [1 0]; D = [0]; JbkR = ss(A,B,C,D); % Define model from % state-space JbkRtf = tf(JbkR); % Convert to % transfer function JbkRzpk = zpk(JbkR); % Convert to % zero-pole % description [num,den] = tfdata(JbkR,'v'); % Extract transfer % function % description [z,p,k] = zpkdata(JbkR,'v'); % Extract zero-pole % description JbkRss = ss(JbkRtf) % Convert to % state-space % description
Background image of page 1

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

View Full Document Right Arrow Icon
%----------------------------------------------- % Chapter 2. Simulation of State-Space Systems %----------------------------------------------- t = [0:.01:4]; % Define array of time % values U = [zeros(size(t))]; % Zero single input of
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}