dengjianjuxianzhen.m

来自「20元等间隔线阵的波束形成程序」· M 代码 · 共 23 行

M
23
字号
c=1500;
f=1000;
theter=-pi/2:pi/360:pi/2;
x=sin(theter);
 d=1;
 N=2;
 m=abs(sin(N*pi*d*f/c*x)./(sin(pi*d*f/c*x)*N));
     subplot(411), plot(x,m) ,title('d=1 N=2');
     
   d=2;
   N=2; 
 n=abs(sin(N*pi*d*f/c*x)./(sin(pi*d*f/c*x)*N));
   subplot(412),plot(x,n),title('d=2 N=2');
   
    d=4;
   N=8; 
 b=abs(sin(N*pi*d*f/c*x)./(sin(pi*d*f/c*x)*N));
   subplot(413),plot(x,b),title('d=4 N=8');
   
   
 v=m.*n.*b
  subplot(414),plot(x,v),title('N=32 总指向性');
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?