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.00053537
p2 = -8.1393e-018
p3 = -0.00044699
x=0:0.1:10
y = p1*x.^2 + p2*x + p3
angles=angle(x+j*y)