matlab 矩阵元素求和,求均值和均方差
问题描述:
matlab 矩阵元素求和,求均值和均方差
答
m = rands(5,4)
m =
0.5155 0.4121 0.6469 -0.1225
0.4863 -0.9363 0.3897 -0.2369
-0.2155 -0.4462 -0.3658 0.5310
0.3110 -0.9077 0.9004 0.5904
-0.6576 -0.8057 -0.9311 -0.6263
>> s=mean(m)
s =
0.0879 -0.5368 0.1280 0.0272
>> ss = std(m)
ss =
0.5097 0.5653 0.7583 0.5221