From: d Milthon on
I have a polygon inside a polygon (polygon with a 'hole') and
I'm trying to use the patch command (in my GUI) to color only the big polygon without the inner hole so i need to color the bigger one (doesn't matter what color) and the smaller polygon needs to be white (or background color) so it would look like a hole inside a polygon.

i tried:
p=patch(x,y,z,'w');
clear z
z = [3 37];
set(p,'FaceColor','flat','CData',z,'CDataMapping','scaled')

but i can only give strange colors to the faces, not white as i need.

Does anyone know a fast way with patch ?