MATLAB Function Reference |
Graphical
Interface
在 File 選單的 New 或是 Open 有著同樣的功能.
Syntax
edit edit fun.m edit file.ext edit class/fun edit private/fun edit class/private/fun
Description
edit fun.m
在預定的視窗開啟 M檔案 fun.m,如果檔案 fun.m
不存在,則會出現訊息詢問你是否要開啟新檔,如果你選擇 Yes 的話,MATLAB 會在預定的視窗為你開新檔案
fun.m,(((If you do not want the prompt to appear in this situation, check that
box in the prompt or specify it in preferences for
Prompt on page 7-38. ))),如果你輸入 edit fun
但檔案 fun
卻不存在的話,MATLAB 會開啟檔案 fun.m.
edit class/fun
編輯一個方法(method),私有函數(private
function),或是私有方法(method),而 class 為其類別之名稱.,
edit private/fun, 或 edit class/private/fun
Remarks
如果你想選用 MATLAB 的預定編輯器的話,可以在 File 選單的 Preferences 中,Editor/Debugger 裡設定.
UNIX
Users
如果你在 MATLAB 的起啟始選項使用 -nodisplay
,或是沒有在
DISPLAY
的環境變數下執行,
( UNIX部份我有很多地方不確定或是不懂的…沒再繼續翻下去了… )
edit
uses the External Editor
command. It does not
use the MATLAB Editor/Debugger, but instead uses the default editor defined for
your system in $matlabroot/X11/app-defaults/Matlab
.
You can specify the editor that the edit
function
uses or specify editor options by adding the following line to your own .Xdefaults
file, located in ~home
.
matlab*externalEditorCommand: $EDITOR -option $FILE
$EDITOR
is the name of your default editor,
for example, emacs
; leaving it as $EDITOR
means your default system editor will be used.
-option
is an option flag for the specified editor.
$FILE
means the filename you type with
the edit
command will open in the specified editor.Then, before starting MATLAB, run
xrdb -merge ~home/.Xdefaults
For the HP 700 platform, the default editor is instead
defined in $matlabroot/toolbox/matlab/general/edit.m
. To change
it, open the file edit.m
and edit the line
eval( ['!$EDITOR "' file '" &']);
See
Also
echo | eig |