polynomial interpolation with lagrange form!!!
古いコメントを表示
I implemented a function of lagrange form and i want to use it to interpolate the function f(x) = sin(4x) for some datapoints!! i wrote the script for that but it always gives me error !!! can anyone help me with that !!!
this is my code
xval = 0:10;
pval = xval.^2;
xx = linspace(0,10);
yy = lagrange1(xx,xval,pval);
plot(xval,pval,'o',xx,yy,'.')
4 件のコメント
Torsten
2022 年 1 月 25 日
Since we don't see lagrange1, we can't reproduce the error.
Anas Gharsa
2022 年 1 月 25 日
Torsten
2022 年 1 月 25 日
And the error message ?
Anas Gharsa
2022 年 1 月 25 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

