MATLAB Community

MATLAB, community & more

Results for: Editor

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... read more >>

Variable and Function Rename 12

Posted by Michael Katz,

The MATLAB R2011b feature that I’ve been most anticipating is the automatic rename in the Editor. Renaming functions and variables is a common operation for programmers. It’s useful for making code easier to read and understand. For example, I often start hacking together a script by using easy-to-type names like... read more >>

The Go To Dialog 2

Posted by Michael Katz,

Over the weekend, reader “mnasr14” reminded me with a comment on an old post about the oft-overlooked Go To… dialog in the Editor. The Go To… dialog provides a quick way to jump to a point in an open Editor document by line number, function name, or cell title. ... read more >>

Highlighting Global and Persistent Variables

Posted by Michael Katz,

In R2010b we started highlighting non-local variables in light blue. Non-local variables are variables that are used in at least two functions that share scope. For example, a variable used both in a nested function and its parent function. We had a lot of feedback from users that when non-local... read more >>

Demo’ing Scripts With ECHODEMO 1

Posted by Michael Katz,

Scripting files in Cell Mode has plenty of benefits. In addition to code organization, rapid iteration, and publishing, cell mode can also be used to present cell-by-cell interactive demonstrations.... read more >>

Enumeration Templates

Posted by Michael Katz,

Ever since Class Objects were first introduced in R2008a, we’ve improved or added to their functionality. In R2010b, we have official support for Enumerations. Enumerations are type-safe collections of discrete, named values. Classic textbook examples are the days of the week (Monday, Tuesday, etc) and months (January, February, etc), because... read more >>