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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by