View License

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

» Watch video

Highlights from
Quadratic Equation Calculator

1.5 | 2 ratings Rate this file 17 Downloads (last 30 days) File Size: 8.26 KB File ID: #22935 Version: 1.1
image thumbnail

Quadratic Equation Calculator


Diego Barragán (view profile)


09 Feb 2009 (Updated )

Quadratic Equation Calculator

| Watch this File

File Information

Enter the coefficients for the Ax2 + Bx + C = 0 equation and Quadratic Equation will output the solutions and plot(if they are not imaginary).

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
11 Feb 2009 Guillermo Quintas

10 Feb 2009 Husam Aldahiyat

While you do that why not add more features, like roots of a function regardless of its order or something else. You can use the MATLAB function roots which will help immensly.

Currently, even if you fix these mistakes, it's still very bare bones and needs more features.

Comment only
10 Feb 2009 Diego Barragán

Diego Barragán (view profile)

Hi Husam and Matt Fig, thanks a lot for review my program "Quadratic Equation Calculator". I will change it.

Regards, Diego.

Comment only
10 Feb 2009 Loginatorist

Loginatorist (view profile)

I gave two stars because by running this program, the root is changed then not changed back. That is not a good way to make users of your code happy. When the user closes the GUI, you need to set colordef back to what it was prior to initialization. I will change my rating when this is fixed.

10 Feb 2009 Loginatorist

Loginatorist (view profile)

In the lines where you calculate the quadratic formula, you need a parenthesis around the 2*a, like this;
Otherwise your solutions are only valid for a = 1.

Comment only
09 Feb 2009 Husam Aldahiyat

Enter [3 5 2] as values for [A B C] and you'll get messed up results. Same for [2 5 2].

Comment only
10 Feb 2009 1.1


Contact us