How to Create a function to generate Noise Signal

50 Ansichten (letzte 30 Tage)
Med Future
Med Future am 29 Jan. 2022
Kommentiert: Med Future am 31 Jan. 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)

Antworten (1)

Image Analyst
Image Analyst am 29 Jan. 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 Kommentar
Med Future
Med Future am 31 Jan. 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with Signal Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by