MATLAB Answers

0

How do i plot 3 langrange polinomials in one figure?

Asked by mikaella penta on 17 Feb 2019
Latest activity Answered by John D'Errico
on 17 Feb 2019
f(x)=cos(πx) xo=1/5 x1=3/2 x2=2

  0 Comments

Sign in to comment.

1 Answer

Answer by 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

Sign in to comment.