How can I create a graphic which variables are in a cell array?

1 回表示 (過去 30 日間)
Miriã  Gollmann
Miriã Gollmann 2018 年 6 月 17 日
コメント済み: Walter Roberson 2018 年 6 月 17 日
How can I create a graphic which variables are in a cell array, with command mesh?

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 6 月 17 日
You cannot do that without deferencing the cell array, such as in
mesh(MyCell{1}, MyCell{2}, MyCell{3})
  2 件のコメント
Miriã  Gollmann
Miriã Gollmann 2018 年 6 月 17 日
I have one cell array. So, when I do this command, the message "Z must be a matrix, not a scalar or vector" show up.
Do you know what I have to do?
Walter Roberson
Walter Roberson 2018 年 6 月 17 日
The above command shows one cell array with three entries in it.
You would get that error message if you called
mesh(Z)
or
mesh(X, Y, Z)
but your Z was not a numeric 2D array, such as if it was a vector or if it was 3D.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by