Extract data from multidimensional cell array
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Esra Kaya
el 3 de Ag. de 2016
Respondida: Esra Kaya
el 4 de Ag. de 2016
In a for loop, I made some calculations and obtained a 50x1 cell array and every cell has :x9 matrices. object count being ':' means it is changeable. 9 is the number of properties and I want to calculate the mean value of every property. I could not take the data from the cell array. Can you please help me? Thanks in advance.
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 3 de Ag. de 2016
Editada: Azzi Abdelmalek
el 3 de Ag. de 2016
yourcellarray=arrayfun(@(x) randi(10,randi(20),9),1:50,'un',0) %--Example-----
out=cellfun(@(x) mean(x,2),yourcellarray,'un',0)
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!