I want to write a MATLAB program of FEM or Method of moment for Rectangular patch antenna and I do not have any idea regarding this. I have to just calculate the width and length of the antenna.
To design width and length of an antenna, we can easily done with simple matlab codes. but while define radiation pattern, its continues Fourier series form. Try to follow PHASED ARRAY TOOLBOX in MATLAB website to get idea about to design radiation pattern. Good Luck