How to write equation a for X and Y
2 次查看(过去 30 天)
显示 更早的评论
How to write equation a for X and Y using the below image (how to obtain X and Y)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170941/image.png)
1 个评论
Rik
2018-3-3
I don't understand the constraints of your question, nor what makes this a Matlab question. You have a direct equation to obtain X and Y, so what is your problem?
采纳的回答
Image Analyst
2018-3-3
Try this:
xy = [xj-xi; yj-yi];
rotationMatrix = [cos(theta), sin(theta); sin(theta), -cos(theta)]
XY = rotationMatrix * xy;
X = XY(1);
Y = XY(2);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!