| MATLAB Function Reference | ![]() |
Syntax
type ('filename')
type filename
Description
type('filename') 顯示在
MATLAB 命令視窗下的特定檔案的內容. 使用 filename的完整路徑, 或用 MATLAB 相對路徑(relative
partial pathname).
若你不確定檔案名稱的副檔名而所有的 filename 都要有副檔名, type
函數將會把自動地加入 .m . type函數將檢查特定的 MATLAB 路徑,
而這個在螢幕上是很方便去列出 *.m 檔案.
Examples
type('foo.bar') 例出 foo.bar檔案的內容.
type foo 列出 foo檔案內容 若 foo
不存在, type foo 會列出 foo.m檔案的內容.
See
Also
cd,
dbtype, delete,
dir,
partialpath, path,
what,
who
|
tsearchn | uicontextmenu | ![]() |