Write an matlab function m-file to solve a second-order


Problem ; part 1:

Quadratic equation (Programming code)

Please don't write it on the paper, write it by computer so I can run it through MATLAB

Write an MATLAB function (M-file) to solve a second-order polynomial:

Ax2 + Bx + C = 0

Request input from the user (three numbers: A, B, and C).

Check for real/imaginary roots

Solve mathematically and store the solutions in variables x1 and x2

Return the solutions to the user (x1, x2)

Remember: annotation and comments are very important in the understanding of your code by another (a grader or faculty member) and you will be graded by the functionality of your code AND the quality of your code, including annotation.

Please don't forget to add comment, so any one read the program should understand your thought.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Write an matlab function m-file to solve a second-order
Reference No:- TGS02897381

Expected delivery within 24 Hours