www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/TwoChannelsOfPinkNoiseExample.m
%% Two Channels of Pink Noise % Generate two channels of pink noise 1000 samples in length. % Copyright 2015 The MathWorks, Inc. NumChannels = 2; NumSamples = 1000; hcn = dsp.ColoredNoise('InverseFrequencyPower',1,'NumChannels',2,... 'SamplesPerFrame',NumSamples); x = step(hcn); subplot(2,1,1) plot(x(:,1)); title('Channel 1'); subplot(2,1,2) plot(x(:,2)); title('Channel 2');