rotpat
旋转辐射模式
描述
例子
旋转Pattern of Short-Dipole Antenna
使用简短的天线创建偏振辐射图案。旋转图案,并将旋转图案用作自定义天线的辐射图案。
创建一个分阶段
antenna object with default properties. The short-dipole antenna radiates polarized radiation. Obtain and display the radiation for all directions.
天线=分阶段。EL = -90:90;AZ = -180:180;pat_h = zeros(numel(el),numel(az),'喜欢',1+1i); pat_v = pat_h; fc = 3e8;form = 1:numel(el)temp = antenna1(fc,[az; el(m)*一个(1,numel(az))]);pat_h(m,:) = temp.h;pat_v(m,:) = temp.v;end图案(天线,FC,'类型','力量')
旋转the antenna pattern around they- 轴为135度,然后绕旋转x- 轴为65度。
newax = rotx(65)*roty(135); pat2_h = rotpat(pat_h,az,el,newax); pat2_v = rotpat(pat_v,az,el,newax);
将旋转图案插入phased.CustomAntennaElement
目的。Set the antenna polarization properties so that the element radiates horizontal and vertical polarized fields. Then display the rotated pattern in three dimensions.
antenna2 = phased.CustomAntennaElement(...'SpecifyPolarizationPattern',true,...'HorizontalMagnitudePattern',mag2db(abs(pat2_h)),...“水平强调”,rad2deg(angle(pat2_h)),...'VerticalMagnitudePattern',mag2db(abs(pat2_v)),...'VerticalPhasePattern',rad2deg(Angle(PAT2_V)));图案(天线2,FC,'类型','力量')
旋转Pattern of Cosine Antenna
使用A创建余弦天线的辐射图案分阶段
目的。旋转用于在phased.CustomAntennaElement
antenna object.
First obtain the radiation pattern for a分阶段
object over a limited range of directions. The field is not polarized.
antenna1 = phased.CosineAntennaElement(``宇宙力量'',[5,5]);AZ = -60:65;EL = -60:60;pat = zeros(numel(el),numel(az),'喜欢',1);FC = 300E6;form = 1:numel(el)temp = antenna1(fc,[az; el(m)*一个(1,numel(az))]);pat(m,:) = temp;end
显示原始图案。
imagesc(az,el,abs(pat)) axisxy轴equal轴紧的Xlabel(“方位角(DEG)”)ylabel(“海拔(DEG)”) 标题('Original Radiation Pattern')配色栏
将天线图案旋转20度z-axis and 50 degrees around thex-axis. Then display the rotated pattern.
newax = rotx(50)*rotz(20);rpat = rotpat(PAT,AZ,EL,Newax);imagsc(AZ,EL,ABS(RPAT))轴xy轴equal轴紧的Xlabel(“方位角(DEG)”)ylabel(“海拔(DEG)”) 标题(“旋转辐射模式”)配色栏
Use the rotated pattern in a custom antenna element and display the pattern in 3-D.
antenna2 = phased.CustomAntennaElement(...'AzimuthAngles',AZ,“高程”,el,'SpecifyPolarizationPattern',错误的,...'aggitudepattern',mag2db(abs(rpat)),...'PhasePattern',zeros(size(rpat))); pattern(antenna2,fc,'类型','力量')
Input Arguments
pat
—Radiation pattern
复杂值N-经过-Mmatrix|复杂值N-经过-M-经过-L大批
辐射模式,指定为复杂值N-经过-Mmatrix or complex-valuedN-经过-M-经过-L大批.Nis the length of theel
vector andMis the length of theaz
向量。Each column corresponds to one of the azimuth angles specified in theaz
争论。Each row corresponds to one of the elevation angles specified in theel
争论。You can specify multiple radiation patterns usingL页面。例如,您可以使用页面在不同频率下指定辐射模式。假定每个图案的主要叶子沿着x-axis. Units are in meters-squared.
Data Types:双倍的
Complex Number Support:Yes
az
—Azimuth angles
-180:180
(default) |1 byM实值行矢量
计算3-D辐射模式的方位角,指定为1乘M实价的行矢量M是方位角的数量。每个条目对应于在pat
争论。角度单位为程度。方位角必须位于–180°和180°之间,包括。
方位角是x-axis and the projection of the direction vector onto thexy-飞机。从x- 轴向y-axis.
例子:-45:2:45
Data Types:双倍的
el
—高程角
-90:90
(default) |1 byN实值行矢量
高程角for computing directivity and pattern, specified as a 1-by-N实价的行矢量N是高程角度的数量。每个条目对应于在pat
争论。角度单位为程度。高程角必须位于–90°和90°之间,包括。
The elevation angle is the angle between the direction vector andxy-飞机。测量朝向z-axis.
例子:-75:1:70
Data Types:双倍的
rotax
—旋转矩阵
real-valued orthonormal 3-by-3 matrix|real-valued orthonormal 3-by-3-by-P正常矩阵阵列
旋转矩阵, specified as a real-valued orthonormal 3-by-3 matrix or a real-valued 3-by-3-by-P大批. The columns represent thex,y, 和zdirections of the rotated coordinate system with respect to the original coordinate system. ThePpages specify different rotation matrices.
该表描述了输出模式的尺寸rpat
depend on the dimensions of thepat
和rotax
参数。
Dimensions ofrpat
PAT的尺寸 |
Dimensions of rotax |
|
---|---|---|
3-经过-3 | 3-经过-3-经过-P | |
M-经过-N | 旋转单个图案a single rotation matrix. Output dimensions ofrpat areM-经过-N. |
旋转单个图案P不同的旋转矩阵。输出尺寸rpat areM-经过-N-经过-P. |
M-经过-N-经过-L | 旋转L图案通过相同的旋转矩阵。输出尺寸rpat areM-经过-N-经过-L. |
In this case,P必须等于L函数通过相应的旋转矩阵旋转每个图案。输出尺寸rpat areM-经过-N-经过-L. |
例子:rotx(45)*roty(30)
Data Types:双倍的
expval
—Extrapolation value
0
(default) |scalar
Output Arguments
rpat
— Rotated radiation pattern
复杂值N-经过-M矩阵|复杂值N-经过-M-经过-P大批
Extended Capabilities
C/C ++代码生成
使用MATLAB®CODER™生成C和C ++代码。
Version History
matlab命令
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.
选择一个网站
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:.
您还可以从以下列表中选择一个网站:
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.
美洲
- AméricaLatina(Español)
- 加拿大(英语)
- 美国(英语)