How to create a simulink block from an m file?

1 view (last 30 days)
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?

Answers (1)

Kaustubha Govind
Kaustubha Govind on 19 Apr 2013
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.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!