I want to draw rectangles like the exmaple below in my tex file. I am trying to illustrate the path counting problem on a rectangular mesh.

I want to draw rectangles like the exmaple below in my tex file. I am trying to illustrate the path counting problem on a rectangular mesh.

\newcommand\catalannumber[3]to\newcommand\catalannumber[4]and in the code change#3to#4,(#2,#2)to(#2,#3)and invoke as\catalannumber{0,0}{2}{3}{0,1,1,1,0};– Scott H. Apr 05 '13 at 22:14