patch question? image processing

1 回表示 (過去 30 日間)
Javier
Javier 2013 年 7 月 6 日
Hello,
using the patch code I'd created a map, anyone know how I can generate the patch without that line (between the island and the corner)..and how can I use the patch with nans data
https://www.dropbox.com/s/qyrkj9b1409197x/patch.jpg
Regards

採用された回答

Hugo
Hugo 2013 年 7 月 6 日
How are you creating the patch? Is it only one patch?
If you want the patches to be painted, you will need to create two patches: one for the island and one for the mainland.
Otherwise, you can create only one patch by introducing NaNs. For example:
V=[0,0;1,0;0,1;1,1;2,1;1,2;NaN,NaN];
patch('Vertices',V,'Faces',[1,2,3,1,7,4,5,6,4,7]);
That code creates two triangles without any connection between them.
  5 件のコメント
Guru
Guru 2013 年 7 月 7 日
Yes Image Analyst. Accepting the answer means the question has been addressed to the satisfaction of the person asking the question. He seems to have a few extra questions that he hopes Hugo can assist him with.
Javier
Javier 2013 年 7 月 8 日
yes Hugo, thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by