필터 지우기
필터 지우기

How to Create a function to generate Noise Signal

조회 수: 52 (최근 30일)
Med Future
Med Future 2022년 1월 29일
댓글: Med Future 2022년 1월 31일
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)

답변 (1개)

Image Analyst
Image Analyst 2022년 1월 29일
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
Med Future
Med Future 2022년 1월 31일
@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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by