上述for 迴圈的範例可以改寫成向量化版本: ii = 1:100; square = ii.^2;. Hung-Yuan Fan (范洪源), Dep. of Math., NTNU, Taiwan. Chap. 5, Computer Programming.
確定! 回上一頁