display of amplitude and time at each point in a range of a signal in simulink

I want a plot/scope/graph where I can display the y-value at those x-values that i specify? Can anyone help me with this please?

 採用された回答

TAB
TAB 2012 年 1 月 25 日

0 投票

Create a m-file s-function, in which you can collect the Y values at your X values and plot it on figure.
--OR--
Save the X & Y values to base worksapce using 'To Workspace' block and write m-script to plot them.

4 件のコメント

meera
meera 2012 年 1 月 25 日
Thank You!! Can I implement it in simulink also??
TAB
TAB 2012 年 1 月 25 日
There are 3 plotting options in simulink - Scope, Floating scope & X-Y graph. I dont think it is possible with any of them.
meera
meera 2012 年 1 月 25 日
Hey Tab,
Can't it be the other way around, I wanna import data from workspace into simulink using 'from workspace'
TAB
TAB 2012 年 1 月 27 日
No clear why you want to use 'from workspace' block...??

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

その他の回答 (2 件)

Samitha
Samitha 2012 年 1 月 25 日

0 投票

Regarding the Simulink thing!
Presumably this article might be helpful as it explains the way which a scope plot can be converted to a figure (more or less).

2 件のコメント

meera
meera 2012 年 1 月 25 日
Hello Samitha,
The website u typed..is not opening
meera
meera 2012 年 1 月 25 日
Thank You Samitha!! Yes, it is helpful.

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

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

タグ

質問済み:

2012 年 1 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by