フィルターのクリア

Standarddeviation & mean multiple Matrices

7 ビュー (過去 30 日間)
JamJan
JamJan 2021 年 2 月 2 日
回答済み: Ive J 2021 年 2 月 2 日
Hi,
I am trying to calculate the mean and std of each position of multiple matrices.
For example: I have 5 matrices of 67x51 and I would like to take the mean and std of each position of these matrices combined. How can I do this best?
Thank you for your help,
JamJan

回答 (1 件)

Ive J
Ive J 2021 年 2 月 2 日
rearrange your matrices into a single 3D matrix.
A(:, :, 1) = [1 2; 3 4];
A(:, :, 2) = [5 7; 10 6];
mean(A, 3)
3.0000 4.5000
6.5000 5.0000
std(A, [], 3)
2.8284 3.5355
4.9497 1.4142

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by