How to convert from surf to plot3 ?

1 vue (au cours des 30 derniers jours)
Tin Truong Chanh
Tin Truong Chanh le 5 Avr 2021
Commenté : darova le 6 Avr 2021
Hello!
I have data with X(1xn), Y(1xn), and Z(nxn) matrix, with this data i can plot with surf . However, i would like to plot with plot3 with this data. How can i do that!.

Réponse acceptée

darova
darova le 5 Avr 2021
Try meshgrid
[X1,Y1] = meshgrid(X,Y);
plot3(X1,Y1,Z1)
line(X1',Y1',Z1')
  2 commentaires
Tin Truong Chanh
Tin Truong Chanh le 6 Avr 2021
Your code works well. Thank you so much for your help!.
darova
darova le 6 Avr 2021
you are welcome

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by