h=12 for y=h:-1:0 for x=y:2:(2*h-y) plot(x,y,'.','markersize','10') hold on end end h = 12 ??? Error using ==> plot Value must be numeric