2d coordinate transformation specified origin matlab
Mostrar comentarios más antiguos
I asked this question sometime ago but i realised I did not ask it well due to me being new to matlab, I have a cordinate point I want to rotate 45 degrees clock wise but has a different origin other than 0,0. My origin is [start_x = 24.000;start_y = 16.000] and the cordinate I want to rotate about the origin is [target_x = 27.000,target_y = 16.000]
This what I have attempted so far.
theta = pi/4 ;
R = [cos(theta) -sin(theta); sin(theta) cos(theta)];
p = [target_x target_y]';
New_Target = p * R;
Any Ideas?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Computational Geometry en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!