i get overshoots after applying curve fitting to 2d plot to get more point at specific x coordinate points

조회 수: 1 (최근 30일)
hi
i am trying to apply linear interpolation to get point at predetermined x coordinate point , but the issue is that at some points i got so strange point as shown in the two attached pictures. first one is the graph before intepolation and the second one is after applying interpolation to get more point .
for i=1:1:length(A)
MAX=max(A{i});
MIN=min(A{i});
xq{i}=round(MIN):0.005:round(MAX);
vq1{i} = interp1(A{i},B{i},xq{i},'pchip');
plot(xq{i},vq1{i},'LineWidth',3)
hold on
end

답변 (0개)

카테고리

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