MATLAB Community

MATLAB, community & more

Edit MATLAB Code for Simulink in the Editor

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.

|
  • print

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.