フィルターのクリア

Lagrange polynomial: two equivalent m-files

2 ビュー (過去 30 日間)
Jan
Jan 2022 年 12 月 23 日
コメント済み: Jan 2022 年 12 月 23 日
I have a problem with the Lagrange polynomial in Matlab.
Here they write
% YY = LAGRANGEPOLY(X,Y,XX) returns the values of the polynomial
% sampled at the points specified in XX -- the same as
% YY = POLYVAL(LAGRANGEPOLY(X,Y)).
%
I understand that XX are the points at which the Lagrange polynomial is evaluated. But the the command after the second YY doesn't contain XX. So why these two YY are the same ? How can they be the same ??
  4 件のコメント
Torsten
Torsten 2022 年 12 月 23 日
編集済み: Torsten 2022 年 12 月 23 日
lagrangepoly.m is saved in your working directory ?
Jan
Jan 2022 年 12 月 23 日
I see. Now it works fine. I'm new to Matlab thus appologizing my confusion.Thank you.

サインインしてコメントする。

回答 (1 件)

the cyclist
the cyclist 2022 年 12 月 23 日
Assuming you are talking about this submission to the FEX, it is not from Mathworks. It is a user-contributed function. I guess you'd need to ask the author what they meant.

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by