p1=[-83.3958 12.4263 36.4348]; p2=[-86.9626 21.0892 23.2980]; p3=[ -274.7046 58.9844 -171.2332]; v1 = p2-p1; v2 = p3-p2; angle = rad2deg(atan2(norm(cross(v1,v2)),dot(v1,v2)));
I see in other forums, but none have a explain how to calculate the three angles of one vector relative to a another. Thanks in advance.
I think you should project the vectors onto each plane consecutively and calculate then the angle formed by the projections:
p1=[-83.3958 12.4263 36.4348]; p2=[-86.9626 21.0892 23.2980]; p3=[ -274.7046 58.9844 -171.2332]; v1 = p2-p1; v2 = p3-p2; v_1 = [v1(1) v1(2)]; v_2 = [v2(1) v2(2)]; ang1 = acos(dot(v_1,v_2)/(norm(v_1)*norm(v_2))); v_1 = [v1(2) v1(3)]; v_2 = [v2(2) v2(3)]; ang2 = acos(dot(v_1,v_2)/(norm(v_1)*norm(v_2))); v_1 = [v1(1) v1(3)]; v_2 = [v2(1) v1(3)]; ang3 = acos(dot(v_1,v_2)/(norm(v_1)*norm(v_2)));
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.