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!