Effacer les filtres
Effacer les filtres

Surface plot by using three vectors of the same length

4 vues (au cours des 30 derniers jours)
MOHAMED ABDULAZIM
MOHAMED ABDULAZIM le 13 Août 2020
Commenté : Star Strider le 14 Août 2020
How could I generate a surface plot by using three vectors of the same length and there is no relation between them?I know that I have to generate a meshgrid from x and y ,but the z vector was obtained experiamentally and there is no relation to link it to x and y to generate its mesh of the same size.So,what should Ido?

Réponse acceptée

Star Strider
Star Strider le 13 Août 2020
The surf plot only requires that ‘Z’ is a matrix. The ‘X’ and ‘Y’ arguments are good to have, although not necessary (and they can be vectors).
With no information about what the ‘Z’ vector actually is or what it contains, I can only suggest that to create a matrix from it will likely require the reshape function.
  15 commentaires
MOHAMED ABDULAZIM
MOHAMED ABDULAZIM le 14 Août 2020
Could I save matlab figures to a certain directory and make this automatic in script file?I am writing a script file for drawing many surfaces.
Star Strider
Star Strider le 14 Août 2020
Yes.
Use the saveas or print function.
Access the R2013a documentation with:
doc saveas
doc print
Use the documentation provided with R2013a, not the online documentation that I lniked to here, that is for R2020a. All the other related functions linked to in and at the end of that documentation page that I lniked to here were introduced after R2013a.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Help and Support dans Help Center et File Exchange

Tags

Produits


Version

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by