Hi, I am a newbie for 3D plot. I have a dataset including 1000 rows and 3 columns. I treat each row as one observation, which has three values(three columns). I want to draw a 3D plot using this dataset. I tried to draw it in different ways. I used plot3 and it only gives me lines. I used surf(x,y,z) and mesh(x,y,z) where x, y and z are 1000 by 1 vector only to get error message. Please help me with this. I want to get some kind of smooth surface if possible. Thanks.

댓글 수: 2

José-Luis
José-Luis 2014년 1월 16일
You could interpolate to a regular grid and then mesh.
Xin CUI
Xin CUI 2014년 1월 16일
Do you mind elaborate it? Thanks.

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 17일

0 개 추천

Use TriScatteredInterp or the newer GriddedInterpolant

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2014년 1월 16일

답변:

2014년 1월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by