フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

simulink

1 回表示 (過去 30 日間)
mohamed  al-asklany
mohamed al-asklany 2012 年 3 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
if i have a simulink model and the output of low pass filter is sin signal with certain frequency if i want to know this frequency and display it on a screen what should i do? remark simulation model time is (inf.)

回答 (2 件)

K E
K E 2012 年 3 月 22 日
I would output the signal to the workspace and calculate the frequency from within Matlab; here is an example approach. You could use Matlab to start your simulation too using the sim command, and afterward plot the spectrum that you calculate.
  8 件のコメント
mohamed  al-asklany
mohamed al-asklany 2012 年 3 月 27 日
my simulink model time is inf
how i can import data from simulink in inf tim?
K E
K E 2012 年 4 月 4 日
You could decide how much time you would need to get a good estimate of the frequency (for example, 30 periods of a 10-second sine wave would be 300 seconds), then put an event listener (http://www.mathworks.com/help/toolbox/simulink/slref/add_exec_event_listener.html) in your model that would output the results to the workspace at 300 seconds.

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012 年 3 月 24 日
I think you can use the option named display which is available in sink block.. I am not sure also whether this will work or not.
  1 件のコメント
mohamed  al-asklany
mohamed al-asklany 2012 年 3 月 24 日
no no no,i want to get freq not to show its spectrum

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by