It is tool to produce radiation pattern for following antenna arrays in 3 dimensions:
Run .m file and enter the no. of elements and distance between elements to produce radiation pattern
Maximizing figure window and using rotate tool might help to analyze radiation pattern in detail
Optimization of code has been done as a matter of practice.
Suggestions are highly encouraged.