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

364 次查看(过去 30 天)
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?

采纳的回答

Fangjun Jiang
Fangjun Jiang 2018-6-12
a=cell(1,2,3)

更多回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by