Azzera filtri
Azzera filtri

How to Create a function to generate Noise Signal

52 visualizzazioni (ultimi 30 giorni)
Med Future
Med Future il 29 Gen 2022
Commentato: Med Future il 31 Gen 2022
Hi I hope you are doing well,
i want to generate the noisy signal data as in the attached File. it has 1024 value in Two column.
i want to create a function which generate this type of random Noise with 100 files.
I have tried the following code but does not work
t = (0:1:1024)';
>> x = sin(t);
>> y = awgn(x,10,'measured');
>> plot(y)

Risposte (1)

Image Analyst
Image Analyst il 29 Gen 2022
Is this what you're trying to do?
s = load('noise.mat')
Nsignal = s.Nsignal;
subplot(2, 1, 1);
plot(s.Nsignal);
xlim([1, length(s.Nsignal)])
grid on;
title('Original Two Signals')
xlabel('Index');
ylabel('Nsignal')
t = (0:1:1024)';
y = rand(length(t), 1);
subplot(2, 1, 2);
plot(t, y, 'b-')
grid on;
xlim([t(1), t(end)])
title('One Noisy Signal')
xlabel('t');
ylabel('y')
  1 Commento
Med Future
Med Future il 31 Gen 2022
@Image Analyst yes i want that, but i want this in complex format (IQ) and generate 100 mat files for that. the file i have attached in first column i have real value and in second column i have complex value

Accedi per commentare.

Categorie

Scopri di più su Get Started with Signal Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by