Calculating rms for a matrix

5 vues (au cours des 30 derniers jours)
Faiz Khan
Faiz Khan le 24 Avr 2020
Commenté : Faiz Khan le 28 Avr 2020
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
Faiz Khan
Faiz Khan le 24 Avr 2020
For each row
Faiz Khan
Faiz Khan le 24 Avr 2020
Can un pls respond how should i do that

Connectez-vous pour commenter.

Réponses (2)

Adam Danz
Adam Danz le 24 Avr 2020
Check out the 2nd input to, y = rms(x,dim)
  3 commentaires
Faiz Khan
Faiz Khan le 24 Avr 2020
could you explain me in detail
Adam Danz
Adam Danz le 24 Avr 2020
Modifié(e) : Adam Danz le 28 Avr 2020
Click the link in my answer. Read about 'dim' (link below takes you directly to "dim").
Dim specifies which dimension (columns, rows, etc.) Try dim=1 and dim=2 to see what it does.

Connectez-vous pour commenter.


David Hill
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
Faiz Khan le 28 Avr 2020
Tq

Connectez-vous pour commenter.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by