How to Create a function to generate Noise Signal

45 ビュー (過去 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 Center および File ExchangeGet 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