Filter löschen
Filter löschen

Data structure in Matlab

1 Ansicht (letzte 30 Tage)
Torsionfree
Torsionfree am 6 Nov. 2013
Beantwortet: Andrei Bobrov am 6 Nov. 2013
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.

Antworten (2)

Muneef
Muneef am 6 Nov. 2013
yes it can be done you can put a matrix inside a vector by using cells .

Andrei Bobrov
Andrei Bobrov am 6 Nov. 2013
X - cell array:
X = repmat({nan(100,200)},10,1);

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by