波束形成MATLAB代码
常规的波束形成方法clc;clear;close all;fs = 1000;c = 150;N = 128;f = 100;lambda = c / f;d = 0.5 * lambda;theta = 1: 1: 180;t = (0:1:1000-1) / fs;A = zeros(1, length(theta));A(5) = 5;A(20) = 4;A(25) = 5;A(50) = 3; % 在这四个方向上有目标S = zeros(leng