필터 지우기
필터 지우기

Data structure in Matlab

조회 수: 1 (최근 30일)
Torsionfree
Torsionfree 2013년 11월 6일
답변: Andrei Bobrov 2013년 11월 6일
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.

답변 (2개)

Muneef
Muneef 2013년 11월 6일
yes it can be done you can put a matrix inside a vector by using cells .

Andrei Bobrov
Andrei Bobrov 2013년 11월 6일
X - cell array:
X = repmat({nan(100,200)},10,1);

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by