How can i find angle with x-axis of a plot in matlab?

5 views (last 30 days)
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 . . .

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 6 May 2013
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)

More Answers (1)

Jan
Jan on 6 May 2013
Edited: Jan on 6 May 2013
Points do no have angles.
Do you want the slope? You can achieve this by deriving the polynomial:
slope = 2 * p1 * x + p2
  1 Comment
Ali
Ali on 7 May 2013
points definitely do not have angles. . . what i said was the angle of curve at that point with x-axis

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!