博客
关于我
相控阵天线均匀线阵方向图(五)------方向图函数的不同表达形式
阅读量: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/

你可能感兴趣的文章
node exporter完整版
查看>>
node HelloWorld入门篇
查看>>
Node JS: < 一> 初识Node JS
查看>>
Node JS: < 二> Node JS例子解析
查看>>
Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime(93)解决
查看>>
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime(72)
查看>>
Node 裁切图片的方法
查看>>
node+express+mysql 实现登陆注册
查看>>
Node+Express连接mysql实现增删改查
查看>>
node, nvm, npm,pnpm,以前简单的前端环境为什么越来越复杂
查看>>
Node-RED中Button按钮组件和TextInput文字输入组件的使用
查看>>
vue3+Ts 项目打包时报错 ‘reactive‘is declared but its value is never read.及解决方法
查看>>
Node-RED中Slider滑杆和Numeric数值输入组件的使用
查看>>
Node-RED中Switch开关和Dropdown选择组件的使用
查看>>
Node-RED中使用exec节点实现调用外部exe程序
查看>>
Node-RED中使用function函式节点实现数值计算(相加计算)
查看>>
Node-RED中使用html节点爬取HTML网页资料之爬取Node-RED的最新版本
查看>>
Node-RED中使用JSON数据建立web网站
查看>>