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

323 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 12 Giu 2018
a=cell(1,2,3)

Più risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Cell Arrays in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by