Converting Transfer Function Models to State-Space Models Using MATLAB
First, write out the numerator and denominator expressions of the system’s transfer function model, then call tf2ss() to obtain the four matrices of the state-space model, and finally plot the system’s response curve to the input signal. % Transfer function conversion to state-space %G(s)=num(s)/den(s); %X’=A*X+B*U; %Y=C*X+D*U; %[A,B,C,D]=tf2ss(num,den); %%%%%%%%%%%%%%%%%%%% clear all; clc; close all; %%%%%%%%%%%%%%%%%% num1=[1 … Read more