plotResponse
System object: phased.HeterogeneousULA
Namespace: phased
Plot response pattern of array
Syntax
plotResponse(H,FREQ,V)
plotResponse(H,FREQ,V,Name,Value)
hPlot = plotResponse(___)
Description
plotResponse( plots
the array response pattern along the azimuth cut, where the elevation
angle is 0. The operating frequency is specified in H,FREQ,V)FREQ.
The propagation speed is specified in V.
plotResponse(
plots the array response with additional options specified by one
or more H,FREQ,V,Name,Value)Name,Value pair arguments.
returns handles of the lines or surface in the figure window, using
any of the input arguments in the previous syntaxes.hPlot = plotResponse(___)
Input Arguments
| Array object |
| Operating frequency in Hertz specified as a scalar or 1-by-K row
vector. Values must lie within the range specified by a property of |
| Propagation speed in meters per second. |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name in quotes.
| Cut angle as a scalar. This argument is applicable only when Default: | |||||||||||
| Format of the plot, using one of Default: | |||||||||||
| Set this value to Default: | |||||||||||
| Set this value to This parameter applies only when Default: | |||||||||||
| Specify the polarization options for plotting the array response
pattern. The allowable values are
For arrays that do not support polarization, the only
allowed value is Default: | |||||||||||
| Cut of the response. Valid values depend on
If you set | |||||||||||
| The unit of the plot. Valid values are
Default: | |||||||||||
| Weight values applied to the array, specified as a length-N column
vector or N-by-M matrix. The
dimension N is the number of elements in the array.
The interpretation of M depends upon whether the
input argument
| |||||||||||
| Azimuth angles for plotting array response, specified as a row
vector. The Default: | |||||||||||
| Elevation angles for plotting array response, specified as a
row vector. The Default: | |||||||||||
| U coordinate values for plotting array response,
specified as a row vector. The Default: | |||||||||||
| V coordinate values for plotting array response,
specified as a row vector. The Default: |
Examples
Using a line plot, show the azimuth cut response of a 5-element heterogeneous uniform linear array along 0 degrees elevation. The plot shows the responses at operating frequencies of 200 MHz and 400 MHz.
Construct the array from z-directed and y-directed short dipole antenna elements.
sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousULA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 2 2 2 1]);
Plot the response.
fc = [3e8 4e8];
c = physconst('LightSpeed');
plotResponse(sArray,fc,c);
Construct a 5-element heterogeneous ULA of short-dipole antenna elements. Using the plotResponse method, plot the array's azimuth response in polar format. Assume each element's operating frequency spans 200-500 MHz and the wave propagation speed is the speed of light.
sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousULA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 2 2 2 1]);
Plot the response at 300 MHz.
fc = 3e8; c = physconst('LightSpeed'); plotResponse(sArray,fc,c,'RespCut','Az','Format','Polar');

Plot the directivity of the array at 300 MHz.
plotResponse(sArray,fc,c,'RespCut','Az','Format','Polar',... 'Unit','dbi');

Construct a 9-element heterogeneous ULA of short-dipole antenna elements having different orientations. Assume each element response is in the frequency range 200-500 MHz. Using the plotResponse method, plot the array's azimuth response in polar format. Use the Weights parameter to set two different sets of tapering weights: a uniform tapering and a Taylor tapering. Use the AzimuthAngles parameter to restrict the display range from -45 to 45 degrees in 0.1 degree increments.
Construct the array.
sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousULA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 2 2 2 2 2 1 1]);
Plot the response at 300 MHz.
fc = 3e8; wts1 = ones(9,1); wts2 = taylorwin(9); c = physconst('LightSpeed'); plotResponse(sArray,fc,c,'RespCut','Az',... 'AzimuthAngles',[-45:0.1:45],... 'Weights',[wts1,wts2]);

As expected, the tapered weighting broadens the mainlobe and reduces the sidelobes.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)