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

5 次查看(过去 30 天)
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 . . .

采纳的回答

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

更多回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by