matlab累加 求和可以采用以下的思路:>> a = 1:10 a =1 2 3 4 5 6 7 8 9 10 >> sum(a)ans =55 >> cumsum(a)ans =1 3 6 10 15 21 28 36 45 55 例如: ...
確定! 回上一頁