3D interpolation Help with

조회 수: 2 (최근 30일)
Fabio
Fabio 2011년 5월 20일
편집: John Kelly 2015년 2월 27일
Hi, I've 9 points in a 3D space:
% 1 2 3 4 5 6 7 8 9
X=[245 135 356 356 135 245 450 245 040];
Y=[245 356 356 135 135 450 245 040 245];
Z=[ 35 10 13 12 13 4 2 3 2];
X and Y are the base coordinates (fixed); Z are my parameters (change for each iteration) to create a paraboloid like this (page end):
How can I do?
Thank You!

답변 (2개)

Jarrod Rivituso
Jarrod Rivituso 2011년 5월 20일
I always find this stuff cool for some reason. Anyway, TriScatteredInterp might help you
X=[245 135 356 356 135 245 450 245 040];
Y=[245 356 356 135 135 450 245 040 245];
Z=[ 35 10 13 12 13 4 2 3 2];
F = TriScatteredInterp(X',Y',Z');
[qx,qy] = meshgrid([0:10:500],[0:10:500]);
qz = F(qx,qy);
surf(qx,qy,qz)
hold on
plot3(X,Y,Z,'o')

Fabio
Fabio 2011년 5월 20일
Perfect!
Thank you very much :)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by