simulinke with m-file

조회 수: 3 (최근 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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by