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
  • send email

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。