Calculating rms for a matrix
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Adam Danz
el 24 de Abr. de 2020
Check out the 2nd input to, y = rms(x,dim)
David Hill
el 28 de Abr. de 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));
Ver también
Categorías
Más información sobre Array and Matrix Mathematics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!