I'd like to calculate rms of 3rd and 4th columns of a 21600x4 matrix (filedata{i}) but I couldn't do it. If you have any idea about how to do I'll be appreciate it. Thanks in advance.
M_Rms(:,:,i)= rms(filedata{i},3);

답변 (1개)

Scott MacKenzie
Scott MacKenzie 2021년 6월 13일
편집: Scott MacKenzie 2021년 6월 13일

0 개 추천

The rms of the data in column 3 in the matrix filedata is
rms(filedata{:,3})

댓글 수: 1

mehtap agirsoy
mehtap agirsoy 2021년 6월 13일
Thanks Scott.I've tried:
A=rms(filedata{i}(:,3:4,i),3);
M_Rms(:,:,i)=[filedata{i}(:,1:2) A];
but after 7th iteration I get an error :Index in position 3 exceeds array bounds (must not exceed 4). I'm really confused.

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

카테고리

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

제품

릴리스

R2021a

태그

질문:

2021년 6월 13일

댓글:

2021년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by