Edit: I want to generate points (x,y) such that x+y<=1.
[x,y] = meshgrid(0:.05:1, 0:.05:1);
Is it possible to use the output of the above result to to generate (x,y) such that x+y<=1.
You can ignore whatever is below. I got confused about what I am asking :) Previous: I want to plot the density function of Dirichlet distribution for points on the probability simplex in 3 dimensional space, that is, for p = (p1, p2, p3), p1+p2+p3 = 1. The distribution is given by
f(p1, p2, p3) = c*p1^(a1)*p2^(a2)*p3^(a3)
where c is a fixed normalization constant. Any help is appreciated.
Note: p1+p2+p3=1 such that p1>0, p2>0 p3>0 is a plane in 3 dimensions and hence 2 dimensional. Hence, it is possible to plot a function on this space.