フィルターのクリア

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 Center および File ExchangeInterpolation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by