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!