A compilation of few matlab functions for phased array analysis