Code covered by the BSD License  

Highlights from
quadratic equation interpolation

3.0

3.0 | 2 ratings Rate this file 46 Downloads (last 30 days) File Size: 1.23 KB File ID: #41298
image thumbnail

quadratic equation interpolation

by

 

assume you have a quadratic equation y=ax^2+bx+c.This script determines a, b , c

| Watch this File

File Information
Description

Determine coefficients of a quadratic interpolation equation when having 3 values in x,y.

assume you have a quadratic equation y=ax^2+bx+c and have 3 points in x and 3 points in y. This script determines a, b , c

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
10 Oct 2014 John D'Errico

abc = polyfit(x,y,2);

would suffice as well. Polyfit is a bit higher quality code too, and it comes with MATLAB since the last 30 years or so. And polyfit has much more capability.

I do find it somewhat laughable that the code fits a QUADRATIC polynomial, but the picture posted shows a curve fit through 4 points, that is clearly NOT quadratic. Hey, it is that new math I suppose. What will they think of next?

And finally, while the title of the submission says something about interpolation, it does no interpolation for you at all.

10 Oct 2014 Yan Cheng  

Contact us