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

405 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by