plotResponse
System object: phased.HeterogeneousConformalArray
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
This example shows how to construct an 8-element uniform circular array (UCA) with two different antenna patterns.
element1 = phased.CosineAntennaElement('CosinePower',1.5); element2 = phased.CosineAntennaElement('CosinePower',1.8); N = 8; azang = (0:N-1)*360/N-180; array = phased.HeterogeneousConformalArray( ... 'ElementPosition',0.4*[zeros(1,N); cosd(azang); sind(azang)], ... 'ElementNormal',zeros(2,N),'ElementSet',{element1,element2}, ... 'ElementIndices',[1 1 1 1 2 2 2 2]);
Plot the array elevation response when the operating frequency is 1 GHz and the wave propagation speed is the speed of light.
c = physconst('LightSpeed'); fc = 1e9; pattern(array,fc,0.0,-90:90,'PropagationSpeed',c,'CoordinateSystem','polar', ... 'Type','powerdb')

Plot the directivity.
pattern(array,fc,0.0,-90:90,'PropagationSpeed',c,'CoordinateSystem','polar', ... 'Type','directivity')

This example shows how to construct a 24-element disk array using elements with two different antenna patterns and plot its response.
sElement1 = phased.CosineAntennaElement('CosinePower',1.5); sElement2 = phased.CosineAntennaElement('CosinePower',1.8); N = 8; azang = (0:N-1)*360/N-180; p0 = [zeros(1,N);cosd(azang);sind(azang)]; posn = [0.6*p0, 0.4*p0, 0.2*p0]; sArray1 = phased.HeterogeneousConformalArray(... 'ElementPosition',posn,... 'ElementNormal', zeros(2,3*N),... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1 1 1 1 1 1,... 1 1 1 1 1 1 1 1,... 2 2 2 2 2 2 2 2]);
Show the array.
viewArray(sArray1);

Plot the elevation response of this array using uniform weights on the elements and also a tapered set of weights set by the Weights parameter. Using the ElevationAngles parameter, restrict the plot of the response from -60 to 60 degrees in 0.1 degree increments. Assume the operating frequency is 1 GHz and the wave propagation speed is the speed of light.
c = physconst('LightSpeed'); fc = 1e9; wts1 = ones(3*N,1); wts1 = wts1/sum(abs(wts1)); wts2 = [0.5*ones(N,1); 0.7*ones(N,1); 1*ones(N,1)]; wts2 = wts2/sum(abs(wts2)); plotResponse(sArray1,fc,c,'RespCut','El',... 'Format','Polar',... 'ElevationAngles',[-60:0.1:60],... 'Weights',... [wts1,wts2],... 'Unit','db');

As expected, the tapered weights broaden the mainlobe and reduce 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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)