How to operate on each column seperately

조회 수: 5 (최근 30일)
MatlabUser17
MatlabUser17 2018년 5월 8일
댓글: MatlabUser17 2018년 5월 8일
Hi, I have a n*m matrix and I need to calculate the RMS value over each column separately. How can I do this without using 'for'? Thanks
  댓글 수: 3
Guillaume
Guillaume 2018년 5월 8일
rms indeed, if you have the signal processing toolbox.
MatlabUser17
MatlabUser17 2018년 5월 8일
Thank you guys, I really appreciate it!

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

채택된 답변

Guillaume
Guillaume 2018년 5월 8일
sqrt(mean(yourmatrix.^2))
is all that is needed. mean operates on columns by default.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by