How to generate a signal with zero mean and 0.2 variance (uniform)

1 次查看(过去 30 天)
I was wondering how to generate this signal, and to mix it with xn that I already made:
n = [0:1023];
omega = 0.25*pi;
xn = sin(omega*n);
plot(n,xn);
I also need to find the SNR of the combined signal and plot the magnitude spectrum if possible.

回答(1 个)

Matt J
Matt J 2014-9-19
Some useful commands: randn, fft, abs, angle

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by