Surf plot without interpolation

13 ビュー (過去 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 Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by