Desktop Tools and Development Environment Previous page   Next Page

Changing the Case of Selected Text

To change the case of text in the Editor/Debugger, select the text and then use one of these key sequences:

This is useful, for example, when copying syntax from help in an M-file, where uppercase is used but will not run in MATLAB. In this example, the text was copied and pasted from help get.

V = GET(H, 'Default')

Select the line of text. Press Alt+U and then press L. The line becomes

v = get(h, 'default')

If instead you pressed Alt+U and then R with the original help line selected, the case changes to

v = get(h, 'dEFAULT')

Undo and Redo

You can undo many of the Editor/Debugger actions listed in Edit and Text menus. Select Edit -> Undo. You can undo multiple times in succession until there are no remaining actions to undo. Select Edit -> Redo to reverse an undo.


Previous page  Adding Comments in M-Files Appearance of an M-File Next page

© 1994-2005 The MathWorks, Inc.