Surf plot without interpolation

조회 수: 18 (최근 30일)
Kean Yung
Kean Yung 2014년 2월 7일
댓글: Kean Yung 2014년 2월 9일
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
Kean Yung
Kean Yung 2014년 2월 9일
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?

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2014년 2월 7일
Stuff NaNs into the elements that are outside the area of interest. That part will not plot.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by