what is the type of the array, is it binomial or tchebychev or ... . I think you will find a lot of ready made codes for them. but search for the binomial or tchebychev not for array design
It is microstrip arrays. There are programs with CAD of Microstrip Antennas for Wireless Applications book. But is closed program. I would like to have the matlab version or the functions to design it myself.