Create Array Within Array

조회 수: 17 (최근 30일)
Matthew
Matthew 2017년 10월 3일
답변: Walter Roberson 2017년 10월 3일
I need to create an array. Within that array, each cell of the array is a numerical array unto itself (i.e., child arrays within a parent array). I did it accidentally a few weeks ago, but cannot remember how. Would somebody be able to give me some guidance?
Thanks in advance,
M Ridzon

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 3일
A = cell(1,5);
for K = 1 : 5
A{K} = randi(6, 1, 10);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by