I have a bivariate gaussian I defined as follow:
I=[1 0;0 1];
mu=[0,0];
sigma=0.5*I;
beta = mvnrnd(mu,sigma,100); %100x2 matrix where each column vector is a variable.
now I want to plot a contour of the pdf of the above matrix. What I did:
Z = mvnpdf(beta,mu,sigma); %100x1 pdf matrix
Now I want to plot a contour of the bivariate gaussian beta. I know I should use the command contour but this one require Z to be a square matrix. how do I solve this? I am very confused and not sure how to plot the contour of the bivariate gaussian!! ANY HELP IS GREATLY APPRECIATED..
Thank you