(translator=PoChien, ChineseSource=PoChien-20020608-6\edit.html, EnglishSource=c:\matlabr12\help\techdoc\ref\edit.html)
MATLAB Function Reference    
edit

編輯或新建 M檔案.

Graphical Interface

File 選單的 New 或是 Open 有著同樣的功能.

Syntax

Description

edit 開一個新的編輯視窗.

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 file.ext 開啟此文字檔.

edit class/fun, edit private/fun, 或 edit class/private/fun 編輯一個方法(method),私有函數(private function),或是私有方法(method),而 class 為其類別之名稱.

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.

where:

Then, before starting MATLAB, run

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

See Also

open, type


  echo   eig