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
2017-4-17
编辑:Andrei Bobrov
2017-4-17
EDIT
A - your matrix (19 x 2)
out0 = atand(A(:,2)./A(:,1));
out = A(out0 < 10,:);
1 个评论
aravind dhulipalla
2017-4-17
编辑:aravind dhulipalla
2017-4-17
类别
在 帮助中心 和 File Exchange 中查找有关 Genomics and Next Generation Sequencing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!