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

330 views (last 30 days)
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?

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 12 Jun 2018
a=cell(1,2,3)

More Answers (1)

Al in St. Louis
Al in St. Louis on 8 May 2020
Wouldn't it be nice if documentation for that function existed?
  7 Comments
Fangjun Jiang
Fangjun Jiang on 8 May 2020
If you look towards the end section of the "doc cell" page ... Yes. It does not look like the best way.

Sign in to comment.

Categories

Find more on Cell Arrays in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!