Filter löschen
Filter löschen

How to write equation a for X and Y

2 Ansichten (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 3 Mär. 2018
Beantwortet: Image Analyst am 3 Mär. 2018
How to write equation a for X and Y using the below image (how to obtain X and Y)
  1 Kommentar
Rik
Rik am 3 Mär. 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?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 3 Mär. 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);

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics and Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by