Question: QUESTION 2 : [ 3 5 ] A cubic polynomial ( i . e . of degree 3 ) can consists of both real and
QUESTION : A cubic polynomial ie of degree can consists of both real and complex roots.
Write a function "complexcubic" that will accept a vector of numbers that represents the
coefficients of any cubic polynomials as the input argument. The function will return ONLY the
complex roots of the cubic polynomials. If there are no complex roots, the function will display a
message that there are no complex roots. The following examples illustrate different scenarios when
the function complexcubic is called.
Example : in the Command Window:
Example : in the Command Window:complexcubicy
There are complex roots
Give answer In MATLAB code please!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
