Borrar filtros
Borrar filtros

Accessing cells of a cell

2 visualizaciones (últimos 30 días)
med-sweng
med-sweng el 27 de Sept. de 2014
Comentada: Image Analyst el 27 de Sept. de 2014
I have the following cell:
Now, when I open it, you can see the following:
My question is, how can we retrieve all the data of such cell?
Thanks.

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 27 de Sept. de 2014
If cellArray is your cell array as shown above with one element, then to access that element just do
data = cellArray{1};
Here we assume that the cell array has been initialized as something similar to
cellArray{1} = 0.5*ones(128,128);

Más respuestas (0)

Categorías

Más información sobre Structures 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