how can i use 3d scatter interpolation

조회 수: 16 (최근 30일)
young been kim
young been kim 2020년 2월 25일
답변: Devineni Aslesha 2020년 2월 28일
I want to interpolate 3d scatter. i have a code and want to add for interpolation.
code is down here.
<<data = importdata('20200211MOHANG_group1_densified_point_cloud.txt');
x = data(:,1);
y = data(:,2);
z = data(:,3);
scatter3(x,y,z,[],z);
xlabel('East');
ylabel('North');
zlabel('Elevation');
title('MOHANG');
colormap(jet);
colorbar('vert');
i hope to use 'interp2' and 'griddata', but i don't know how to use.
Thank you very much if you can modify that code by adding 'interp2' or 'griddata' or both.
  댓글 수: 1
Adam
Adam 2020년 2월 25일
I would assume interp3 is more relevant since you have 3d data to initerpolate.

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

답변 (1개)

Devineni Aslesha
Devineni Aslesha 2020년 2월 28일
Use ‘scatteredInterpolant’ function to interpolate the 3d scattered data. The 3d scattered data can also be interpolated using Delaunay triangulation of the points.
For more information, refer the following links

카테고리

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