MATLAB在使用相控阵列工具箱的时候,遇到了警告问题:
clc;clear;close all;
fc = 1e3; %中心频率频率50kHz
lambda = 1500/fc;
%antenna = phased.IsotropicAntennaElement('FrequencyRange',[50e2 10e4]);%设置频率范围
array = phased.ULA('NumElements',20,'ElementSpacing',lambda/2); %均匀线阵,阵元间距半波长
array.Element.FrequencyRange = [500 1e4];
plotResponse(array,fc,1500);
axis([-25 25 -30 0]);
ang1 = [30; 0];
ang2 = [40; 0];
Nsnapshots = 1000;
rng default
npower = 0.01;
rxsig = sensorsig(getElementPosition(array)/lambda, Nsnapshots,[ang1 ang2],npower);
estimator = phased.BeamscanEstimator('SensorArray',array,'OperatingFrequency',fc,'ScanAngles',-90:90,'DOAOutputPort',true,'NumSignals',2);
[~,sigang] = estimator(rxsig);
plotSpectrum(estimator);
出现以下报错:
警告: No source signal found in the data.
位置:phased.internal/AbstractULASpectralDOA/stepImpl (第 189 行)
位置: test1 (第 19 行)