Write a MATLAB Function file: (2) Write a function file that calculates the Lagrange interpolating polynomial for a data set. Your function file should take as input the data vectors x and y and return the symbolic polynomial P(x) that interpolates the data. Do not use the built-in function interp1.
Added by Becky G.
Close
Step 1
First, we need to import the symbolic toolbox in MATLAB. This toolbox allows us to work with symbolic mathematics and variables. Show more…
Show all steps
Your feedback will help us improve your experience
Shyam P and 58 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write down the cardinal polynomials in the Lagrange interpolation polynomial for the points and the Lagrange interpolating polynomial.
Oswaldo J.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD