rotate 3D data
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lotte Piek
le 18 Oct 2023
Commenté : Star Strider
le 18 Oct 2023
I have a geometry that consists of contours of xyz data points, I want to allign it in such a way that the inlet(left side) is perpendicular to the z axis so that the lenght of the geometry is along the z-axis. Can anybody help?
Thanks!
2 commentaires
Dyuman Joshi
le 18 Oct 2023
How is your question related to MATLAB?
Do you attain the figure by MATLAB code? If so, then provide the code and relevant data used.
Réponse acceptée
Star Strider
le 18 Oct 2023
Use the rotate function. It will likely require a bit of experimenting to get it the way you want it.
Example —
imshow(imread('ask.png'))
title('Question Image')
x = 0:0.01:2*pi;
y = sin(8*x);
z = cos(8*x);
figure
hp = plot3(x, y, z);
grid on
xlabel('x')
ylabel('y')
zlabel('z')
axis('square')
title('Original')
figure
hp = plot3(x, y, z);
grid on
xlabel('x')
ylabel('y')
zlabel('z')
axis('square')
rotate(hp,[0 1 0],90)
title('Rotated')
.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration 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!