Borrar filtros
Borrar filtros

Mean of a cell array

2 visualizaciones (últimos 30 días)
Anampally  Mahesh
Anampally Mahesh el 4 de Feb. de 2024
Comentada: Anampally Mahesh el 5 de Feb. de 2024
I have a 10*1 cell array named Data.mat, that each row of it contains a 30*30 matrix. How to calculate the mean of this cell array and obtain a 30*30 matrix? Thanks in advance for your kind help. Regards, Mahesh.

Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Feb. de 2024
mean(cat(3, TheCellArray{:}),3)
  1 comentario
Anampally  Mahesh
Anampally Mahesh el 5 de Feb. de 2024
Thank you so much, Walter.
It works very nicely :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by