plot in matlab with constraints in the variables
===

I wanted to plot a function of the form f(p,q)=0 in the region 0\le p\le 1, 0\le q\le 1-p. I used ezplot. ezplot('f(p,q)',[0,1]) is what I could do. But it looks uglier because the function is well defined only in the triangular region 0\le p\le 1, 0\le q\le 1-p. So beyond this region, I think, it just plots the real/imaginary part of the function, and hence the uglier. But I would like to draw only in the triangular region 0\le p\le 1, 0\le q\le 1-p. Can someone help? Thank you in advance.