0
A = [1,2,3,4,5,6,7,8,9,10];
M = mean(A)
輸出:
M =
5.5000
我想這是在1號線,如:
M = 5.5000
可能嗎?
A = [1,2,3,4,5,6,7,8,9,10];
M = mean(A)
輸出:
M =
5.5000
我想這是在1號線,如:
M = 5.5000
可能嗎?
你的代碼改成這樣:
A = [1,2,3,4,5,6,7,8,9,10]; M = mean(A); fprintf('M=%f\n',M);