Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Dick Rusell
Dick Rusell le 19 Sep 2014
Modifié(e) : Dick Rusell le 19 Sep 2014
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.

Réponses (1)

Matt J
Matt J le 19 Sep 2014
Some useful commands: randn, fft, abs, angle

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by