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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

edit<br />

2-468<br />

You can specify the editor that the edit function uses or specify editor options<br />

by adding the following line to your own .Xdefaults file, located in ~home.<br />

matlab*externalEditorCommand: $EDITOR -option $FILE<br />

where:<br />

See Also open, type<br />

• $EDITOR is the name of your default editor, for example, emacs; leaving it as<br />

$EDITOR means your default system editor will be used.<br />

• -option is an option flag for the specified editor.<br />

• $FILE means the filename you type with the edit command will open in the<br />

specified editor.<br />

Then, before starting <strong>MATLAB</strong>, run<br />

xrdb -merge ~home/.Xdefaults<br />

For the HP 700 platform, the default editor is instead defined in $matlabroot/<br />

toolbox/matlab/general/edit.m. To change it, open the file edit.m and edit<br />

the line<br />

eval( ['!$EDITOR “' file '" &']);

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

Saved successfully!

Ooh no, something went wrong!