Averaging multiple matrices with the cell array
Mostrar comentarios más antiguos
Hi Guys,
I have a cell array (C) with (1*22), inside this cell i have 22 matrices with (30*30*20).
I want to have the average of all these matrices, so the final output must be in the same dimention (30*30*20).
I have tried this code, but the output was different
for f=1:1:length(C)
for i=1:30
for j=1:20
data=cell2mat(C(f));
end
end
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!