Hallo everyone, I am new for this antenna area. I am trying to use matlab to write programmes the beam pattern of a rectangular array and circular array, but the figures look like different from the books.

I don't know why. For example, the 3-D figure with azithmus angle and polar angle, how change them into x-y plan? Who is good at pragramming with matlab and could you give me some codes about that?
Your advice will be very appreciated.
