0
我對Matlab很陌生,我有點卡住了。將標準偏差爲1.75的AWG噪聲添加到Matlab生成的信號中
這就是問題所要求的。
將標準偏差爲1.75的AWG噪聲添加到剛剛生成的信號中。
這是信號的代碼:
fs = 20000; %Sample Rate (Hz)
f = 1200; %frequency of signal
A = 2.5; % amplitude of signal
phi = pi/4;
t = [0:(1/fs):0.05] ;
y = A * sin (2 * pi * f * t + phi) + 3;
% sine wave 1 [Hz], phase shift 0°, amplitude of 1 vpp
plot (t, y); %Plot the waveform you just created
%Label the axis and title the plot
xlabel ('time [sec]');
ylabel ('amplitude [volt]');
xlim([0 0.05])
ylim([0 6])
謝謝,我真的很感激。 – Ali