How to get bode transfer function from state space model?

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 件のコメント

RahulTandon
RahulTandon 2015 年 7 月 8 日
unclear question 1) define M 2) define w 3) is there a function call of type bode(M,w) ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with Control System Toolbox についてさらに検索

質問済み:

2014 年 2 月 22 日

コメント済み:

2015 年 7 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by