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!