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
답변 (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!