23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2edit<br />

Purpose Edit or create M-file<br />

Graphical<br />

Interface<br />

As an alternative to the edit function, select New or Open from the File menu<br />

in the <strong>MATLAB</strong> desktop.<br />

Syntax edit<br />

edit fun.m<br />

edit file.ext<br />

edit class/fun<br />

edit private/fun<br />

edit class/private/fun<br />

Description edit opens a new editor window.<br />

edit fun.m opens the M-file fun.m in the default editor. If fun.m does not exist,<br />

a prompt appears asking if you want to create a new file titled fun.m. After<br />

clicking Yes, the Editor/Debugger creates a blank file titled fun.m. If you do not<br />

want the prompt to appear in this situation, check that box in the prompt or<br />

specify it in preferences for “Prompt” on page 7-38. If you type edit fun and<br />

there is no file fun, fun.m opens in the default editor.<br />

edit file.ext opens the specified text file.<br />

edit class/fun, edit private/fun, or edit class/private/fun can be<br />

used to edit a method, private function, or private method (for the class named<br />

class).<br />

Remarks To specify the default editor for <strong>MATLAB</strong>, select Preferences from the File<br />

menu. On the Editor/Debugger panel, select <strong>MATLAB</strong>’s Editor/Debugger or<br />

specify another.<br />

UNIX Users<br />

If you run <strong>MATLAB</strong> with the -nodisplay startup option, or run without the<br />

DISPLAY environment variable set, edit uses the External Editor command.<br />

It does not use the <strong>MATLAB</strong> Editor/Debugger, but instead uses the default<br />

editor defined for your system in $matlabroot/X11/app-defaults/Matlab.<br />

edit<br />

2-467

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!