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

353 vues (au cours des 30 derniers jours)
Cynthia Dickerson
Cynthia Dickerson le 12 Juin 2018
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?

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 12 Juin 2018
a=cell(1,2,3)
  1 commentaire
Cynthia Dickerson
Cynthia Dickerson le 12 Juin 2018
Thank you! That syntax was driving me crazy!!!

Connectez-vous pour commenter.

Plus de réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by