Fig. 2. Pattern diagram, ULAA vs Least square Linear Phase LAA
Obviously, the 3dB main lobe of this LAA is very close to that of ULAA, while the 1st side lobe level of this LAA is about 7dB lower than that of ULAA.
The MATLAB source codes is listed as the follows: