Introduction - If you have any usage issues, please Google them yourself
Design of a rectangular grid phased array antenna pattern and its simulation; which contains two files (respectively main_antenna_gain and antenna_gain), where antenna is the call function, the main calculation of the direction of the gain