Question: Create a function In matlab called plot _ quad that plots a quadratic equation. It has the following one input vector with 5 values (

Create a function In matlab called "plot_quad" that plots a quadratic equation. It has the following one input vector with 5 values (a,b,c,xmin and xmax ), where the first three values come from an equation of the form y=a*x2+b*x+c. If the input vector has 4 values then x max is assumed to be
xmin+20. If the input vector has 3 values then xmin shall be -10 and xmax shall be 10. The function should output an error if the input array is a scalar or array with less than 3 elements. The output is a graph of the line between xmin and xmax. The x-axis label is "x" and the y-axis label is "Y". If the input is an array with more than five elements, only the first five elements should be used. The
graph title is "Quadratic Plot of y=a*x2+b*x+c" where the character between the a and x is called a
middle dot, and the values of the a,b, and c are inserted into the equation in the title.
Create a function In matlab called "plot _ quad"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!