How to create a simulink block from an m file?

조회 수: 1 (최근 30일)
Abbas
Abbas 2013년 4월 18일
I want to create a simulink block from m file.I have Matlab R2009a. Should I choose "Embedded Matlab Function" or "Matlab Function" from Simulink library under User-Defined functions? Moreover, I watched a video in which the same task was achieved using "Matlab Function" whose link is below: http://www.mathworks.com/videos/incorporating-matlab-algorithms-into-a-simulink-model-69028.html In my case when i double click "Matlab Function" block it does not open Editor.What to do?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 4월 19일
In newer releases, 'Embedded MATLAB Function' has been renamed to 'MATLAB Function' and 'MATLAB Function' has been renamed to 'Interpreted MATLAB Function', The video refers to the newer names. If you'd like to follow the video, use the 'Embedded MATLAB Function' block. See here for a comparison of the two blocks.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by