Borrar filtros
Borrar filtros

How to tilt the plot on the right to make it like the one on the left?

5 visualizaciones (últimos 30 días)

Respuesta aceptada

Star Strider
Star Strider el 13 de Mzo. de 2023
Tilting it is relatively straightforward with the rotate function —
[X,Y,Z] = peaks(50);
figure
surf(X,Y,Z)
xlabel('X')
ylabel('Y')
zlabel('Z')
shading('interp')
figure
h = surf(X,Y,Z);
xlabel('X')
ylabel('Y')
zlabel('Z')
rotate(h,[-1 0 0], 20)
view(85,10)
shading('interp')
For some reason, rotate is distorting the surface and it shouldn’t. It’s never done that before when I’ve used it. I’m going to submit a Bug Report about it
.
  4 comentarios
Khalil Sabour
Khalil Sabour el 15 de Mzo. de 2023
Thank you, and I have another question, after tilting, how to measure the profile parameters such as Ra, Rz, Rt, etc.?
Star Strider
Star Strider el 15 de Mzo. de 2023
I have no idea what those are.
You need to define them and how to calculate them.

Iniciar sesión para comentar.

Más respuestas (1)

Cameron
Cameron el 13 de Mzo. de 2023
Use the "View" under the plot handle to update this.
[X,Y,Z] = peaks(250);
p = surf(X,Y,Z,'EdgeColor','none');
p.Parent.View = [10 35];

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by