這是從Matlab offical website 找到的: "MATLAB program files can be either scripts or functions. Scripts are simply files containing a sequence of MATLAB statements. Functions make use of their own local variables and accept input arguments."作者: 紅塵孤鳥 時間: 2011-9-7 08:44:50
網路上其實很多相關資料...
Q1:
script file : operate globally on the data in workspace
以.M為副檔名,鍵入檔名就可直接執行