博客
关于我
相控阵天线均匀线阵方向图(五)------方向图函数的不同表达形式
阅读量:559 次
发布时间:2019-03-09

本文共 1629 字,大约阅读时间需要 5 分钟。

基本问题

        如何通过不同的表达形式得到一维线阵的同一个方向图?

源代码

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        函数功能:得到8线阵的方向图%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%clc; clear all;close all;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               参数设置%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%c=3e8;       % 光速f=500e6;     % 信号频率lamda=c/f;   % 波长d=lamda/2;   % 阵元间距N=8;         % 阵元个数theta0=0;    % 波束指向角度bujing=0.1;theta=-90:bujing:90;   % 扫描角取值范围n = [0:1:N-1]'; % 列矢量%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               权值计算%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%W = exp(1j*2*pi*f*n*d*sin(theta0*pi/180)/c); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               法1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for p=1:length(theta) % 扫描角取值范围         V = exp(1j*2*pi*f*n*d*sin(theta(p)*pi/180)/c);% 方向矢量     B1(p) =W'*V;   % 阵元功率叠加    '表示共轭转置   .'表示转置      endF1=abs(B1);             % 取信号的模F1=20*log10(F1/max(F1));% 归一化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               法2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%for p=1:length(theta) % 扫描角取值范围             B2(p) =sum(exp(1j*2*pi*f*n*d*(sin(theta(p)*pi/180)-sin(theta0*pi/180))/c));   endF2=abs(B2);% 取信号的模F2=20*log10(F2/max(F2));%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               法3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for p=1:length(theta)    % 扫描角取值范围    t(p)=pi/2*(sind(theta(p))-sind(theta0));   B3(p) =sin(N*t(p))/sin(t(p));    endF3=abs(B3); %取信号的模F3=20*log10(F3/max(F3));% F3=F3/max(F3);figure(1)plot(theta,F1,'-r*');hold on;plot(theta,F2,'-g^');hold on;plot(theta,F3,'-bo');grid on;xlabel('角度/度');ylabel('方向图');axis([-90 90 -50 0]);legend('法一','法二','法三');

仿真结果

在这里插入图片描述

转载地址:http://wiapz.baihongyu.com/

你可能感兴趣的文章
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>