How do i plot 3 langrange polinomials in one figure?

1 Ansicht (letzte 30 Tage)
mikaella penta
mikaella penta am 17 Feb. 2019
Beantwortet: John D'Errico am 17 Feb. 2019
f(x)=cos(πx) xo=1/5 x1=3/2 x2=2

Antworten (1)

John D'Errico
John D'Errico am 17 Feb. 2019
Do you know how to plot ONE such polynomial? I hope so. If you do, then you need to use the hold command. That is, after you plot the first polynomial, use
hold on
That allows you to continue plotting new things on the same figure, instead of creating a new figure each time.

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by