博客
关于我
相控阵天线均匀线阵方向图(五)------方向图函数的不同表达形式
阅读量: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.js 实现类似于.php,.jsp的服务器页面技术,自动路由
查看>>
Node.js 异步模式浅析
查看>>
node.js 怎么新建一个站点端口
查看>>
Node.js 文件系统的各种用法和常见场景
查看>>
Node.js 模块系统的原理、使用方式和一些常见的应用场景
查看>>
Node.js 的事件循环(Event Loop)详解
查看>>
node.js 简易聊天室
查看>>
Node.js 线程你理解的可能是错的
查看>>
Node.js 调用微信公众号 API 添加自定义菜单报错的解决方法
查看>>
node.js 配置首页打开页面
查看>>
node.js+react写的一个登录注册 demo测试
查看>>
Node.js中环境变量process.env详解
查看>>
Node.js中的EventEmitter模块:基本概念、使用方法和常见应用场景
查看>>
Node.js之async_hooks
查看>>
Node.js也分裂了-开源社区动态
查看>>
Node.js入门系列视频教程
查看>>
Node.js创建第一个应用
查看>>
Node.js初体验
查看>>
Node.js升级工具n
查看>>
Node.js卸载超详细步骤(附图文讲解)
查看>>