Calculating rms for a matrix
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Adam Danz
2020 年 4 月 24 日
Check out the 2nd input to, y = rms(x,dim)
David Hill
2020 年 4 月 28 日
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));
参考
カテゴリ
Help Center および File Exchange で Array and Matrix Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!