plotResponse
System object: phased.HeterogeneousURA
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
Construct a 3-by-3 heterogeneous URA with a rectangular lattice, then plot the array's azimuth response at 300 MHz.
sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousURA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1; 2 2 2; 1 1 1]); fc = [3e8]; c = physconst('LightSpeed'); plotResponse(sArray,fc,c);

Plot the same result in polar form.
plotResponse(sArray,fc,c,'RespCut','Az','Format','Polar');

Finally, plot the directivity.
plotResponse(sArray,fc,c,'RespCut','Az','Unit','dbi');

Construct a square 3-by-3 heterogeneous URA composed of 9 short-dipole antenna elements with different orientations. Using the AzimuthAngles parameter, plot the array's azimuth response in the -45 degrees to 45 degrees in 0.1 degree increments. The Weights parameter lets you display the array's response simultaneously for different sets of weights: in this case a uniform set of weights and a tapered set.
sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousURA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1; 2 2 2; 1 1 1]); fc = [3e8]; c = physconst('LightSpeed'); wts1 = ones(9,1)/9; wts2 = [.7,.7,.7,.7,1,.7,.7,.7,.7]'; wts2 = wts2/sum(wts2); plotResponse(sArray,fc,c,'RespCut','Az',... 'Format','Line',... 'AzimuthAngles',[-45:0.1:45],... 'Weights',[wts1,wts2],'Unit','db');

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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)