Beam array based on matlab rectangular array