フィルターのクリア

simulinke with m-file

1 回表示 (過去 30 日間)
mohamed  al-asklany
mohamed al-asklany 2012 年 3 月 14 日
can i make interface between a simulink file and m- file ? simulink the op signal is sin and i need m-file to calculate frequency of signal?

採用された回答

K E
K E 2012 年 3 月 14 日
You can run Simulink from the matlab prompt or from within a script using the sim command, and pass the simulation output back to the workspace. For example,
simOut = sim('myModel') ;
See this tutorial and 'Communication between the Matlab’s Command window/workspace and Simulink’s Model window' in this tutorial. In Matlab, you can then calculate the frequency of the output signal.
  1 件のコメント
mohamed  al-asklany
mohamed al-asklany 2012 年 3 月 15 日
more explanation ,negative?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by