Surf plot without interpolation

13 vues (au cours des 30 derniers jours)
Kean Yung
Kean Yung le 7 Fév 2014
Commenté : Kean Yung le 9 Fév 2014
The x y coordinates of my data formed a T-shaped domain in stead of a rectangular domain.
[X,Y] = meshgrid(x,y);
Z = griddata(x,y,z, X, Y);
surf(X,Y,Z);
Using meshgrid and griddata will produce data out of the domain. How can i create s surf plot without interpolation? Or how to remove the extra data from the plot?
  1 commentaire
Kean Yung
Kean Yung le 9 Fév 2014
Stuffing Nan did work on the T-shaped domain, but i need to do this on a Y-shaped domain as well. Is there any other simple ways?

Connectez-vous pour commenter.

Réponse acceptée

John D'Errico
John D'Errico le 7 Fév 2014
Stuff NaNs into the elements that are outside the area of interest. That part will not plot.

Plus de réponses (0)

Catégories

En savoir plus sur Interpolation 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!

Translated by