How to Create a function to generate Noise Signal

51 views (last 30 days)
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)

Answers (1)

Image Analyst
Image Analyst on 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 Comment
Med Future
Med Future on 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

Sign in to comment.

Categories

Find more on Get Started with Signal Processing Toolbox in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!