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.

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 17 Apr. 2017
Bearbeitet: Andrei Bobrov am 17 Apr. 2017

1 Stimme

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

1 Kommentar

aravind dhulipalla
aravind dhulipalla am 17 Apr. 2017
Bearbeitet: aravind dhulipalla am 17 Apr. 2017
I need to have the points.This gives the angles right!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Genomics and Next Generation Sequencing finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 17 Apr. 2017

Bearbeitet:

am 17 Apr. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by