Trying to plot elevation of head contours given point coordinates. need direction on how to appraoch problem or how to get matlab to interpolate between different points inorder to get a contour of a given head . here is the given data points.

 採用された回答

darova
darova 2019 年 9 月 9 日

0 投票

Arc-length interpolation
L = sqrt(diff(x).^2 + diff(y).^2);
t = [0 cumsum(L)];
t1 = linspace(0,t(end),50);
x1 = spline(t,x,t1); % interpolate X data
y1 = spline(t,y,t1); % interpolate Y data
plot(x,y,'or')
hold on
plot(x1,y1)
hold off
Look also for: interparc

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

製品

質問済み:

2019 年 9 月 9 日

回答済み:

2019 年 9 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by