function out=mygrid(n) c=0; a=sqrt(50); b=sqrt(200); for i=1:a; for j=1:b; if (i-10)^2+(j-10)^2/4<50; c=c+1; end end end out=c end