How do i plot 3 langrange polinomials in one figure?
1 view (last 30 days)
Show older comments
f(x)=cos(πx) xo=1/5 x1=3/2 x2=2
0 Comments
Answers (1)
John D'Errico
on 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.
0 Comments
See Also
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!