Rms calculation of specific rows

5 visualizaciones (últimos 30 días)
mehtap agirsoy
mehtap agirsoy el 13 de Jun. de 2021
Comentada: mehtap agirsoy el 13 de Jun. de 2021
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);

Respuestas (1)

Scott MacKenzie
Scott MacKenzie el 13 de Jun. de 2021
Editada: Scott MacKenzie el 13 de Jun. de 2021
The rms of the data in column 3 in the matrix filedata is
rms(filedata{:,3})
  1 comentario
mehtap agirsoy
mehtap agirsoy el 13 de Jun. de 2021
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by