Calculating rms for a matrix
Afficher commentaires plus anciens
I have a matrix (21*394) and i need to find a rms for it. i am getting a matrix as a coloumn matrix but i need a row matrix.How can i do that
3 commentaires
David Hill
le 24 Avr 2020
Do you need the rms for each column or for each row?
Faiz Khan
le 24 Avr 2020
Faiz Khan
le 24 Avr 2020
Réponses (2)
Adam Danz
le 24 Avr 2020
0 votes
Check out the 2nd input to, y = rms(x,dim)
David Hill
le 28 Avr 2020
If you have the signal processing toolbox, it is as easy as:
y=rms(x,2);
If you don't, you can calculate manually.
y=sqrt(sum(x.^2,2)/size(x,2));
1 commentaire
Faiz Khan
le 28 Avr 2020
Catégories
En savoir plus sur Array and Matrix Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!