MATLAB: I need to find the roots of the polynomial roots >> p=[1 8 22 24 9]; >> roots(p) for some reason i get this error message* Error in roots (line 32) r = zeros(0,1,class(c)); can anyone help please???? Best Answer in my MATLAB:>> format longg>> p=[1 8 22 24 9];roots(p)ans = -3.00000009061347 + 0i -2.99999990938653 + 0i -1 + 6.12790365933349e-09i -1 - 6.12790365933349e-09i>> Related SolutionsMATLAB: Cube root of a complex function syms ZROOTS=solve(Z^3 == -8-3i,Z)logical(sum(ROOTS)==0) MATLAB: Error: Not Enough Input Arguments Once, I tried to reproduce the same error, I could not>> p = [3 -2 -4];roots(p)ans = 1.5352 -0.8685One Suspect: Is there any other file name as roots.m in the same working directory? Related QuestionReal Roots of a PolynomialComplex Numbers in MatlabFinding the maximum positive real number in a array of complex numbersSimulink/Matlab diferenceAnyone have a clue why roots([1,6,9]) outputs complex numbersHow to plot roots with a value used in the function
Best Answer