Compare tf function with x-y data

I have an ss function object and I want to plot the magnitude against frequency of the object (which I can view using ltiview) along side experimental data. The experimental data is in the form of frequency points in column 1 and magnitude points in column 2, is there some way I can get the ss object data in the same form so I can plot them on the same graph?

4 件のコメント

Jason Baxter
Jason Baxter 2013 年 8 月 9 日
I just want to export a tf function as two columns of data.
dpb
dpb 2013 年 8 月 9 日
What is an ss function object and a tf function?
Jason Baxter
Jason Baxter 2013 年 8 月 12 日
編集済み: Jason Baxter 2013 年 8 月 12 日
an ss function object is a state space object, I think it comes in the Digital System processing toolbox toolbox (DSP). A tf function is a transfer function object that also comes with the DSP toolbox
dpb
dpb 2013 年 8 月 12 日
Don't have the toolbox so all I can do is read the doc's. I'd presume like most other toolboxes they must be structures and you should be able to use normal Matlab structure addressing to return the data into arrays but that's guessing.
I'd suggest changing you tags to DSP Toolbox and perhaps 'toolbox objects' or somesuch; the rest you have are meaningless and unrelated to the problem space. As can be seen by my confusion, not everyone else will have the same background and be able to infer what abbreviations are...help the prospective responder from the git-go.

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

回答 (1 件)

Arkadiy Turevskiy
Arkadiy Turevskiy 2013 年 8 月 12 日
編集済み: Arkadiy Turevskiy 2013 年 8 月 13 日

0 投票

You get magnitude and phase of an LTI object (ss,tf,etc) by using bode command.
If you have your frequency vector, w, and your ss object sys, then:
[mag,ph]=bode(sys,w);
so now you have your two columns, w and mag

1 件のコメント

Jason Baxter
Jason Baxter 2013 年 8 月 13 日
ah, knew it would be something simple. It was an either know it or you don't case.
Thank you Arkadiy Turevskiy

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

カテゴリ

質問済み:

2013 年 8 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by