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

5 ビュー (過去 30 日間)
Ali
Ali 2013 年 5 月 6 日
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 件のコメント
Ali
Ali 2013 年 5 月 7 日
thanks a lot.

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by