Data structure in Matlab

Can I put a matrix in a vector?!
For example, can I have following structures?
for i = 1:10 X(i) = nan(100,200); end
Of course, I can do by creating 100,2000 matrix and put data consecutively. However, I want to organize them with more convenient indexing.

Respuestas (2)

Muneef
Muneef el 6 de Nov. de 2013

0 votos

yes it can be done you can put a matrix inside a vector by using cells .
Andrei Bobrov
Andrei Bobrov el 6 de Nov. de 2013

0 votos

X - cell array:
X = repmat({nan(100,200)},10,1);

Categorías

Etiquetas

Preguntada:

el 6 de Nov. de 2013

Respondida:

el 6 de Nov. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by