How to write equation a for X and Y
2 views (last 30 days)
Show older comments
Elysi Cochin
on 3 Mar 2018
Answered: Image Analyst
on 3 Mar 2018
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 Comment
Rik
on 3 Mar 2018
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?
Accepted Answer
Image Analyst
on 3 Mar 2018
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 Comments
More Answers (0)
See Also
Categories
Find more on Mathematics and Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!