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

364 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Weitere Antworten (1)

Al in St. Louis
Al in St. Louis am 8 Mai 2020
Wouldn't it be nice if documentation for that function existed?
  7 Kommentare
Fangjun Jiang
Fangjun Jiang am 8 Mai 2020
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 am 8 Mai 2020
I've given the page two stars and explained the issue.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by