How to operate on each column seperately

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Guillaume
Guillaume il 8 Mag 2018
sqrt(mean(yourmatrix.^2))
is all that is needed. mean operates on columns by default.

Più risposte (0)

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by