舉例來說,若要計算一個正整數的階乘(Factorial),我們可以寫一個如下的 MATLAB 函數並將之存檔於 fact01.m: >> type fact01.m function output = fact01(n) % FACT01 ...
確定! 回上一頁