simulinke with m-file

3 Ansichten (letzte 30 Tage)
mohamed  al-asklany
mohamed al-asklany am 14 Mär. 2012
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?

Akzeptierte Antwort

K E
K E am 14 Mär. 2012
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 Kommentar
mohamed  al-asklany
mohamed al-asklany am 15 Mär. 2012
more explanation ,negative?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by