I have to use copulapdf command and create different figures from it, varying the parameter nu from 1 to 8. The code for the copula pdf for the nu value=1 is:
nu=1;r=0.5;u = linspace(0,1,20);[u1,u2] = meshgrid(u,u);rho1 = copulaparam('t',r,nu);y = copulapdf('t',[u1(:),u2(:)],rho1,nu);surf(u1,u2,reshape(y,20,20))xlabel('u1')ylabel('u2')
This script works but i want to find a way to have figures automatically for different values of nu. Can someone help me to write the for cycle for this purpose?
Best Answer