How to operate on each column seperately
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MatlabUser17
am 8 Mai 2018
Kommentiert: MatlabUser17
am 8 Mai 2018
Hi, I have a n*m matrix and I need to calculate the RMS value over each column separately. How can I do this without using 'for'? Thanks
3 Kommentare
Akzeptierte Antwort
Guillaume
am 8 Mai 2018
sqrt(mean(yourmatrix.^2))
is all that is needed. mean operates on columns by default.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!