필터 지우기
필터 지우기

Finding when spline interpolated data is equal to a number

조회 수: 3 (최근 30일)
Nathan Mu
Nathan Mu 2022년 4월 12일
편집: Stephen23 2022년 4월 12일
Hello, how would you determine when spline interpolated data is equal to some number, e.g. 3?
Thanks!

채택된 답변

Stephen23
Stephen23 2022년 4월 12일
편집: Stephen23 2022년 4월 12일
X = [1,2,3];
Y = [1,2,4];
Yq = 3;
pp = spline(X,Y);
fh = @(xq)ppval(pp,xq)-Yq;
Xq = fzero(fh,[1,4])
Xq = 2.5616
plot(X,Y,'+',Xq,Yq,'*')

추가 답변 (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