How do I create an empty cell array of given dimensions?

조회 수: 329 (최근 30일)
Cynthia Dickerson
Cynthia Dickerson 2018년 6월 12일
댓글: Al in St. Louis 2020년 5월 8일
I want to assign double matrices into a 3-D cell array. The dimensions of the cell array need to be equivalent to variable1 x variable2 x variable 3. How do I initially create the empty array?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2018년 6월 12일
a=cell(1,2,3)

추가 답변 (1개)

Al in St. Louis
Al in St. Louis 2020년 5월 8일
Wouldn't it be nice if documentation for that function existed?
  댓글 수: 7
Fangjun Jiang
Fangjun Jiang 2020년 5월 8일
If you look towards the end section of the "doc cell" page ... Yes. It does not look like the best way.
Al in St. Louis
Al in St. Louis 2020년 5월 8일
I've given the page two stars and explained the issue.

댓글을 달려면 로그인하십시오.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by