How to create a simulink block from an m file?

3 次查看(过去 30 天)
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