How can I calculate the sample mean and sample variance
50 ビュー (過去 30 日間)
古いコメントを表示
Ihor
2022 年 12 月 4 日
回答済み: RAGHUNATHRAJU DASHARATHA
2022 年 12 月 4 日
I have a pseudo-random matrics M, sizes K-by-N. How can I calculate the sample mean and sample variance:
1) for each column,
2) for the whole matrix?
0 件のコメント
採用された回答
RAGHUNATHRAJU DASHARATHA
2022 年 12 月 4 日
A per my understanding you want to calculate mean and variance for each column and whole matrix.
I'll demonstrate it using below example
a=randi(10,3) % generates pseudo random matrix
%Mean and Variance for each column
[V,M]=var(a)
%Mean and Variance for whole matrix
[b,c]=var(a,0,"all")
for further more go through this link
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!