MATLAB: Are there xdata and ydata properties for fill command

fill

Are there xdata and ydata properties for fill command? If not what is suitable to change their x and y components because i want to set them. Thanks

Best Answer

x=[0 10 10 5 0 ]
y=[0 0 2 1 2 ]
h=fill(x,y,'r')
get(h,'xdata')
get(h,'ydata')