Converting Zero-Pole-Gain Model to State-Space Model Using MATLAB

First, write out the system’s gain, zero vector, and pole vector, then call zp2ss() to obtain the four matrices of the state-space model. Next, use lsim() to generate the system’s response curve and observe the system’s performance. % Convert zero-pole-gain model to state-space model %[A,B,C,D]=tf2ss(Z,P,K)% state-space model matrices: A,B,C,D % zeros: Z % poles: P … Read more