View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
quadratic equation interpolation

3.7 | 3 ratings Rate this file 16 Downloads (last 30 days) File Size: 1.23 KB File ID: #41298 Version: 1.0
image thumbnail

quadratic equation interpolation


Sherif Omran (view profile)


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

| Watch this File

File Information

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 (3)
01 Mar 2015 Juan Carlos Teoyotl Flores


10 Oct 2014 John D'Errico

John D'Errico (view profile)

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