type('filename') displays the contents of the specified file in the MATLAB Command Window. Use the full path for filename, or use a MATLAB relative partial path.
If you do not specify a file extension and there is no filename file without an extension, the type function adds the .m extension by default. The type function checks the folders specified in the MATLAB search path, which makes it convenient for listing the contents of files on the screen.
用法:
type filename
2. open
功能: open file in appropriate application
用法: open filename
3. edit
功能: edit fun.m opens the file fun.m in the default editor.
优点类似open噢。用到的时候再深究吧。
4. which
功能:
Locate functions and files
which fun displays the full pathname for the argument fun. 我目前的理解是,which函数的作用有两个:1. 告诉我某个函数是bulit-in function,还是一般的(根据此判定是否可以读到源代码) 2.该函数的路径,存放在哪里。