Antenna Toolbox can be used to design the Microstrip Patch antenna array at any frequency. The below code can be used to design the patch antenna array at 2 GHz and calculate the sparameters and plot using the rfplot function.
% Design the patch Microstrip at 2 GHz
ant1 = patchMicrostrip;
ant1 = design(ant1,2e9);
figure,show(ant1)
spar = sparameters(ant1,linspace(1.8e9,2.2e9,11));
figure,rfplot(spar);
% Creating a linear array
% Use linearArray functionality present in Antenna Toolbox
% and use the patchMicrostrip designed above as an element
% in the linear array.
arr = design(linearArray,2e9,ant1);
figure,show(arr);
spar1 = sparameters(arr,linspace(1.8e9,2.2e9,11));
figure,rfplot(spar1);
figure,pattern(arr,2e9)