Finding Angle between two points w.r.t x-axis

I am having a matrix of 19 x 2. i need to find the angle between each points with respect to x-axis in the matrix and return the points if the angle is less than 10 degrees.

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2017 年 4 月 17 日
編集済み: Andrei Bobrov 2017 年 4 月 17 日

1 投票

EDIT
A - your matrix (19 x 2)
out0 = atand(A(:,2)./A(:,1));
out = A(out0 < 10,:);

1 件のコメント

aravind dhulipalla
aravind dhulipalla 2017 年 4 月 17 日
編集済み: aravind dhulipalla 2017 年 4 月 17 日
I need to have the points.This gives the angles right!

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

カテゴリ

ヘルプ センター および File ExchangeGenomics and Next Generation Sequencing についてさらに検索

質問済み:

2017 年 4 月 17 日

編集済み:

2017 年 4 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by