http://pastebin.com/B2m2VPrs I have this data. I want to made a surface which will represent this data. Any idea how to do it : ? I tried a bit, but i feel green in making 3dplots in matlab.

답변 (4개)

Matt Kindig
Matt Kindig 2013년 3월 26일

0 개 추천

If you have the Curve Fitting Toolbox,
doc sfit
doc sftool
Youssef  Khmou
Youssef Khmou 2013년 3월 26일
편집: Youssef Khmou 2013년 3월 26일

0 개 추천

hi, try :
plot3(X,Y,Z)
sqrt(120)
X(end+1)=X(end);
Y(end+1)=Y(end);
Z(end+1)=Z(end);
X=reshape(X,11,11);
Y=reshape(Y,11,11);
Z=reshape(Z,11,11);
figure,surf(X,Y,Z); % OR
figure, mesh(X,Y,Z)
Piotr
Piotr 2013년 3월 26일

0 개 추천

Thanks for your help, it looks quite good, so this is enough for me .

댓글 수: 1

Youssef  Khmou
Youssef Khmou 2013년 3월 26일
more resolution : %2nd part
X=interp2(X,2);
Y=interp2(Y,2);
Z=interp2(Z,2);
surf(X,Y,Z)

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

ethan josue
ethan josue 2023년 9월 14일

0 개 추천

plot3(X,Y,Z)
sqrt(120)
X(end+1)=X(end);
Y(end+1)=Y(end);
Z(end+1)=Z(end);
X=reshape(X,11,11);
Y=reshape(Y,11,11);
Z=reshape(Z,11,11);
figure,surf(X,Y,Z); % OR
figure, mesh(X,Y,Z)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

질문:

2013년 3월 26일

답변:

2023년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by