average and standard deviation of one column of a matrix
4 ビュー (過去 30 日間)
古いコメントを表示
I want to calcualte the average and standard deviation for one column of a 1000x10 matrix.
Is there a quicker/efficient way or should I use existing code :
theSum = 0;
for k = 1 : length(x)
theSum = theSum + x(k);
end
theMean = theSum / length(x);
0 件のコメント
採用された回答
per isakson
2019 年 5 月 5 日
編集済み: per isakson
2019 年 5 月 5 日
2 件のコメント
per isakson
2019 年 5 月 7 日
"result is obtained based on all columns rather than just one? " Yes
X = rand(5);
mean(X(:)), std(X(:))
"2a- number of occurences for ..." The values of the "matrix of 1000x10" are they whole numbers?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Time Series についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!