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

David Hill
David Hill 2020년 4월 24일
Do you need the rms for each column or for each row?
Faiz Khan
Faiz Khan 2020년 4월 24일
For each row
Faiz Khan
Faiz Khan 2020년 4월 24일
Can un pls respond how should i do that

댓글을 달려면 로그인하십시오.

답변 (2개)

Adam Danz
Adam Danz 2020년 4월 24일

0 개 추천

Check out the 2nd input to, y = rms(x,dim)

댓글 수: 3

Faiz Khan
Faiz Khan 2020년 4월 24일
WHAT SHOULD BE DIM
Faiz Khan
Faiz Khan 2020년 4월 24일
could you explain me in detail
Adam Danz
Adam Danz 2020년 4월 24일
편집: Adam Danz 2020년 4월 28일
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.

댓글을 달려면 로그인하십시오.

David Hill
David Hill 2020년 4월 28일

0 개 추천

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));

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2020년 4월 24일

댓글:

2020년 4월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by