About 3D surface plot

4 ビュー (過去 30 日間)
Akand Islam
Akand Islam 2015 年 2 月 25 日
コメント済み: Akand Islam 2015 年 3 月 19 日
I have simple question on 3D plot. I have dataset, a = 100*1*51. When I give command surf(bb) the message shows CData must be an M-by-N matrix or M-by-N-by-3 array. Please guide me where is problem? I am also attaching my raw data file.
Regards, Akand

採用された回答

Shoaibur Rahman
Shoaibur Rahman 2015 年 2 月 26 日
a = ...your 100 x 1 x 51 data;
bb = squeeze(a);
surf(bb)
  3 件のコメント
Star Strider
Star Strider 2015 年 2 月 26 日
@Akand — If Shoaibur’s Answer solved your problem, please Accept it.
Akand Islam
Akand Islam 2015 年 3 月 19 日
However, I have hdf file whose size say, 32 50 50. "squeeze" command doesn't help to produce surface plot by "surf".
-- Akand

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by