标签: matlab formatting
代码:
A = [1,2,3,4,5,6,7,8,9,10]; M = mean(A)
输出:
M = 5.5000
我希望它在一行上,如:
有可能吗?
答案 0 :(得分:0)
将您的代码更改为:
A = [1,2,3,4,5,6,7,8,9,10]; M = mean(A); fprintf('M=%f\n',M);