www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotBarrageJammerOutputExample.m

    %% Plot Barrage Jammer Output
% Create a barrage jammer with an effective radiated power of
% 1000W. Then plot the magnitude of the jammer output.
% Your plot might vary because of random numbers.

% Copyright 2015 The MathWorks, Inc.

Hjammer = phased.BarrageJammer('ERP',1000);
x = step(Hjammer);
plot(abs(x)); xlabel('Samples'); ylabel('Magnitude');