rms function seems to be missing. How do I write my own m file to do the same thing?
Mostra commenti meno recenti
I need to take the rms value of each row of a matrix. Some googling lead me to the rms function, which uses the syntax: Y = rms(X,DIM). So in my case I believe that Y=rms(X,2) is exactly what I need. However, the rms function is not present in my version of matlab (is it part of the statistical toolbox or something?)
So, how would I write my own function to do this? I understand what rms is and how to calculate it, but it's mostly the issue of telling it to compute rms for each row of a matrix which gives me trouble.
Thanks for any help!
2 Commenti
Image Analyst
il 9 Feb 2014
What is the reference value that you will be comparing X to? The mean of the row? The mean of the entire 2D matrix?
Matthew
il 9 Feb 2014
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!