add Gaussian noise difference in your Frequency Division Multiplexing (FDM) system and plot it, you can use following steps.
- Generate clean combined signal (without noise)
- Add AWGN (additive white Gaussian noise) to your combined FDM signal.
- Compute and plot the difference (the noise added).
Code that you can add in your script:
% Combine all modulated signals (clean FDM signal)
clean_signal = sum(y);
% Pass through channel with AWGN
noisy_signal = awgn(clean_signal, 0, 'measured');
% Compute Gaussian noise difference
noise_diff = noisy_signal - clean_signal;
% Plot the Gaussian noise difference
figure
plot(t, noise_diff)
xlabel('Time index');
ylabel('Amplitude');
title('Gaussian Noise Difference Added to FDM Signal');
For more details, look into following documentation:
Hope this helps!