Generating baseline wandering noise

 採用された回答

Star Strider
Star Strider 2014 年 4 月 30 日

0 投票

Here is one way:
t = linspace(0,10*pi,1000);
s = sin(t);
sn = 0.3*cos(t./4);
figure(1)
subplot(2,1,1)
plot(t, s)
title('Signal with constant baseline')
grid
subplot(2,1,2)
plot(t, s+sn)
title('Signal with with wandering baseline')
grid

2 件のコメント

Tinkul
Tinkul 2014 年 5 月 1 日
編集済み: Tinkul 2014 年 5 月 1 日
thank you sir...Little bit doubt is here...You have takena signal sin signal and cos signal to get baseline wandering noise. I have 20 samples for eg
A=[-0.165
-0.155
-0.195
-0.205
-0.185
-0.155
-0.135
-0.095
-0.075
-0.065
-0.065
-0.125
-0.125
-0.125
-0.115
-0.125
-0.165
-0.115
-0.145
-0.115]
For these samples i want to generate baseline wandering noise...How can i do it.....Please help....
Star Strider
Star Strider 2014 年 5 月 1 日
Change this line to produce a 20-element vector:
t = linspace(0,10*pi,20)';
sn = 0.5*cos(t./3)*(max(A)-min(A));
figure(1)
plot(A,'-b')
hold on
plot(A+sn,'-r')
hold off
The sn assignment generates the baseline noise, so all you need to do to generate your code with a wandering baseline is to add your signal to it. This code should work for your signal. Only you know what you need, so feel free to change it as necessary.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeJust for fun についてさらに検索

タグ

質問済み:

2014 年 4 月 30 日

コメント済み:

2014 年 5 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by