How to operate on each column seperately
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Guillaume
le 8 Mai 2018
sqrt(mean(yourmatrix.^2))
is all that is needed. mean operates on columns by default.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!