I've created an array using the phased URA tool, & the 3d plot it produced matches well with what I am expecting.
I was wondering how I can get the directivity(dBi) values, ie. z-axis values, from the URA object. Is it possible to create a matrix of these values?
Below is the code used to construct the URA.
sar_array = phased.URA;
sar_array.Size = [10 10];
sar_array.ElementSpacing = [0.9 0.9];
sar_array.Lattice = 'Rectangular';
sar_array.ArrayNormal = 'x';
el = phased.IsotropicAntennaElement;
sar_array.Element = el;
F = 300000000;
PS = physconst('LightSpeed');
fmt = 'rectangular';
fig = figure;
pattern(sar_array, F(1), 'PropagationSpeed', PS, 'Type','directivity', ...