How to formulate 2D frames if I have the origin of the frames (x, y) and the inclination angle of the frame with respect to the x-axis?
조회 수: 2 (최근 30일)
이전 댓글 표시
How to formulate 2D frames if I have the origin of the frames (x, y) and the inclination angle of the frame with respect to the x-axis? Then I need to compute the transformation matrix of the frames w.r.t the reference frame (which is normal x and y directions)??
The attached files are the origins and the corrosponding angles.
댓글 수: 0
채택된 답변
Matt J
2022년 5월 13일
편집: Matt J
2022년 5월 13일
T=makehgtform('translate',[x,y,0],...
'zrotate',angleDegrees*pi/180, ...
'translate',[-x0,-y0,0]);
T=T([1,2,4],[1,2,4]); %transformation matrix
댓글 수: 10
Matt J
2022년 5월 16일
I've no way of "making" the origin whatI want. You're the one who defined the origins in your origins.mat file.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!