Effacer les filtres
Effacer les filtres

How to write equation a for X and Y

2 vues (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 3 Mar 2018
How to write equation a for X and Y using the below image (how to obtain X and Y)
  1 commentaire
Rik
Rik le 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?

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 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);

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics and Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by