MATLAB: How can i find angle with x-axis of a plot in matlab angleslope my plot curve is y = p1*x^2 + p2*x + p3 Coefficients: p1 = 0.00053537 p2 = -8.1393e-018 p3 = -0.00044699 i want to find each point's angle with x axis . . . Best Answer p1 = 0.00053537p2 = -8.1393e-018p3 = -0.00044699x=0:0.1:10y = p1*x.^2 + p2*x + p3angles=angle(x+j*y) Related SolutionsMATLAB: How to iterate three variables having sum one always for P1 = 0 : .1 : 1 for P2 = 0 : .1 : 1-P1 P3 = 1 - P1 - P2; .... do whatever ... endend MATLAB: Trouble using dsolve function z = a*x+b*x^2+c+........; eqn = subs(sym('D2y +5*z+ 2*x + 10*z^2'), z, z);S = dsolve(eqn, x);Myself, I would probably toss in a simplify() around the subs() . Related QuestionHow to set a parameter of poly2 fit to a specific value during fit processHow to fit custom polynomial equationCalculate an angle and distance from three points
Best Answer