standard deviation of two elements of a 3d matrix
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Sean de Wolski
am 28 Jun. 2013
Sounds like you want to squeeze it!
squeeze(std(rand(60,30,45),0,2))
William
am 28 Jun. 2013
1 Kommentar
Sean de Wolski
am 28 Jun. 2013
Mine doesn't have a squeeze(blah,:). It's supposed to jsut be squeeze(blah)
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!