Standard deviation along 2 axes

I am trying to calculate the standard deviation for a 3D dataset of size(3 x 51 x8). I am interested in getting the std values as a function of the 2nd dimension (51 pts). I don't have access to the image processing toolbox to be able to use "std2".
Thanks in advance for your help.

 採用された回答

Bruno Luong
Bruno Luong 2018 年 10 月 29 日

2 投票

D3 = rand(3, 51, 8)
std(reshape(permute(D3,[1 3 2]),[],size(D3,2)))

1 件のコメント

srr
srr 2018 年 10 月 29 日
This worked...It fixed the difference I had previously comparing to the reference.Thanks a lot.

サインインしてコメントする。

その他の回答 (0 件)

製品

リリース

R2017b

質問済み:

srr
2018 年 10 月 29 日

コメント済み:

srr
2018 年 10 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by