使用向量形式的寫法會比迴圈的寫法有效率,進一步說明請參考增進程式執行效率。 ... 其中 index 是迴圈變數, expr_1 是一個向量運算式(例如 1:20 ),而 expr_2 是 ...
statlab.nchc.org.tw