December 7th, 2005, 2:03 am
Dear all:I want to plot Gaussian copula density with T margins and its level curves using following matlab codes. However, I got different results from the book. Can anyone help me to fix the problem? Thanks for help. %p=zeros(99,2);u=0.01:0.01:0.99;rho=0.2;v=3;for i = 1:99 for j = 1:99 x1 = tinv(u(i),v); x2 = tinv(u(j),v); p(i,j) = mvnpdf([x1 x2],[0 0],[1 rho; rho 1])/tpdf(x1,v)/tpdf(x2,v); endendfigure(1); surf(u,u,p);figure(2); contour(u,u,p);