MATLAB Spoken Here

Edit MATLAB Code for Simulink in the Editor 2

Posted by Michael Katz,

Since the long ago Ken days (circa 2009), the MATLAB Editor team and the Simulink Embedded MATLAB team have had an ongoing, under-the-covers project: integrating the Embedded MATLAB editor with the MATLAB Desktop Editor. In MATLAB R2011b and earlier, when you open a MATLAB Function block in Simulink, a separate editor UI opens up that looks similar, but not quite like, the regular MATLAB Editor. Starting in MATLAB R2012a, Embedded MATLAB (and other MATLAB-based function) blocks do their editing in the regular editor. All the same Editor features for stand-alone MATLAB files are now available, in one convenient place!

The 11b Embedded MATLAB Editor

11a EML editing

The 12a MATLAB Editor with an Embedded MATLAB block

The 12a MATLAB Editor with EML

If you’re interested in Embedded MATLAB and other Simulink topics, be sure to subscribe to our Guy and Seth on Simulink blog.

2 CommentsOldest to Newest

These postings are the author's and don't necessarily represent the opinions of MathWorks.