How to get bode transfer function from state space model?

1 view (last 30 days)
Hi everybody I am having problems to get the Bode transfer function from the state space model.
Suppose I have a idss structure M of the state space model. Now consider the following code:
% M is a state space model in a idss structure
sys = tf(M.A,M.C,M.D);
figure(1)
bode(M,w) %w = vector of radiant frequency
figure(2)
bode(sys,w)
Why are the 2 plots completely different if they represent the same state space system?
I was also looking to build the Bode transfer function myself as C*(sI - A)^-1 *B+D but is there a way in matlab to perform such calculations with an unkown?
Thanks in advance
  1 Comment
RahulTandon
RahulTandon on 8 Jul 2015
unclear question 1) define M 2) define w 3) is there a function call of type bode(M,w) ?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!