How to draw a surface without some of the points?
Afficher commentaires plus anciens
Hello everyone.
I have a data, say,
x=1:1:5
And a have an y data
y=1:1:5
which exists for a limited values of x only. For example, grid of x will be
1 2 3 4 5
1 2 3 4 5
x = 1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
But grid of y then will be
1 1 1 1 1
2 2 2 2
y = 3 3 3
4 4
5
So z(x,y) will not exist for some points in 3D dimension. Surf, as far as I know, can not handle this. It plots all length(x)*length(y) points. How can I draw this surface? Thank you.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!