standard deviation of two elements of a 3d matrix
1 次查看(过去 30 天)
显示 更早的评论
Greetings,
I have a 672 x 32 x 2800 matrix that I need to chop into a 672 x 2800 matrix but the rows need to be the standard deviation of the columns in the original 3d matrix. Here is what I am doing which is all wrong
new_col_data = zeros(672,2800);
new_col_data = [std(data, 0, 2),:]
I cannot figure this out. Can someone please tell me what is wrong?
Thank you
0 个评论
采纳的回答
Shashank Prasanna
2013-6-28
编辑:Shashank Prasanna
2013-6-28
A = rand(672,32,2800); % Some random data:
B = std(A,[],2); % Compute the standard deviation
B = squeeze(B); % Squeeze it
0 个评论
更多回答(2 个)
William
2013-6-28
1 个评论
Sean de Wolski
2013-6-28
Mine doesn't have a squeeze(blah,:). It's supposed to jsut be squeeze(blah)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!