MATLAB: I have an polynomial f(x) = 4x^5 + 5x^4 + 2x^3 +2x^2 +3x. And x ranges from {0 to 63}. How to code this so I can display answer corresponding to every value of x. for loop Could you help me? Best Answer p=[4 5 2 2 3 0];x0=1;polyval(p,x0);evaluates your polynomial at x0=1.Best wishesTorsten. Related SolutionsMATLAB: Plotting a polynomial represented by a vector From MATLAB documentation:The polynomial p(x) = 3x^2 + 2x + 1 is evaluated at x = 5, 7, and 9 withp = [3 2 1];polyval(p,[5 7 9])which results in ans = 86 162 262 MATLAB: How can i solve this equation 1/(24*(x^4/24 + x^3/24 + x^2/24 + x/24 + 1/24)) I don’t believe there is a solution in the sense that:Eqn1 = 1/(24*(x^4/24 + x^3/24 + x^2/24 + x/24 + 1/24)) == 0;because this is the essential equivalent of a much simpler equation:Eqn = 1/(x + 1) == 0;Consider:L = limit(Eqn, x, Inf)L = 0and the only solution is :x -> Inf Related QuestionUnable to use fsolve for solving equations whose coefficients are changing with a for loopSimulink and doing x(k)= x(0) + 2HOW DO I GRAPH 1+2z^1+3Z^2 +4Z^3Iteratively loop for computing (WHILE)
Best Answer