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