b=zeros(1,10);
for j=1:10
    b(j)=g(20,j);
end
plot(1:10,b);