How to rotate 3D surface matrices

I have three matrices for surf command: X, Y, Z. I need to rotate the matrix 45 degrees around the y axis to draw a new surface.Is there anyway to achieve this?The schematic diagram is below.

 Respuesta aceptada

Star Strider
Star Strider el 10 de Mayo de 2021

0 votos

It depends on what you want to do.
To rotate the surface in the axes, use the rotate function.
To change the viewpoint (camera angle) use the view function.

4 comentarios

Florence
Florence el 10 de Mayo de 2021
Editada: Florence el 10 de Mayo de 2021
First thanks for your answer,but I need the changed matrix after the rotation.The rotate and the view function seem to just rotate the image.
Star Strider
Star Strider el 10 de Mayo de 2021
My pleasure!
I’m still not clear on exactly what you want to do, and what result you want.
There are other options as well that may work, specifically sph2cart or its friends.
Florence
Florence el 10 de Mayo de 2021
Thanks again for your answer
Star Strider
Star Strider el 10 de Mayo de 2021
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 10 de Mayo de 2021

Comentada:

el 10 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by