why cant i rotate the 2nd line at the X axis it takes reference as point 0,0 and rotates at 45 degree angle i want to rotate the line at same axis
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Prakash Choudhary
el 6 de Abr. de 2019
Comentada: Prakash Choudhary
el 6 de Abr. de 2019
![qq11eeq.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/212300/qq11eeq.png)
3 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Abr. de 2019
It is rotating. Look at the top of your plot.
The way to rotate relative to a point is to subtract the coordinates of the point to rotate around, do the rotation, then add the coordinates of the point to rotate around back in. If you want ot rotate around (800,0) then cart2pol(x1-800,y1) and plot(x1r+800,y1r)
Más respuestas (0)
Ver también
Categorías
Más información sobre 3-D Scene Control en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!