Azzera filtri
Azzera filtri

Lagrange polynomial: two equivalent m-files

2 visualizzazioni (ultimi 30 giorni)
Jan
Jan il 23 Dic 2022
Commentato: Jan il 23 Dic 2022
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 Commenti
Torsten
Torsten il 23 Dic 2022
Modificato: Torsten il 23 Dic 2022
lagrangepoly.m is saved in your working directory ?
Jan
Jan il 23 Dic 2022
I see. Now it works fine. I'm new to Matlab thus appologizing my confusion.Thank you.

Accedi per commentare.

Risposte (1)

the cyclist
the cyclist il 23 Dic 2022
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.

Categorie

Scopri di più su Polynomials in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by