944,017 Members | Top Members by Rank

Ad:
Apr 12th, 2005
0

Contaminating signals for testing filters on MATLAB

Expand Post »
I have taken a trace of an ECG sampled at 360HZ. from the following website:
http://www.physionet.org/physiobank/database/mitdb/

I have to contaminate it with an artificial 50Hz sinusoid.

I am working on MATLAB. I imported the .dat file got from the website to the Signal Processing tool in MATLAB. I have also created the 50Hz signal by the following:

x=0:0.001:0.05
y=sin(2*pi*50*x)

Now, I am unable to add the two signals together. Please help and advise how to do this. I am doing this so that I can test a filter I prepared.

Thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
GC1234 is offline Offline
2 posts
since Apr 2005
Apr 17th, 2005
0

Re: Contaminating signals for testing filters on MATLAB

Quote ...

x=0:0.001:0.05
y=sin(2*pi*50*x)

Now, I am unable to add the two signals together. Please help and advise how to do this. I am doing this so that I can test a filter I prepared.

Thank you.
Its been awhile since ive messed with matlab but it looks like you want to add an array with just a single function...

this isnt possible unless you do array arithmetic... I am not so sure how you add... is it .+ or +. or something... the . with division and with mulitplication changes it to array division/multi not sure if it works with addition...

I'll break out the book later and look if this doesnt help
Reputation Points: 10
Solved Threads: 3
Junior Poster
jhdobbins is offline Offline
105 posts
since Apr 2005
Apr 20th, 2005
0

Re: Contaminating signals for testing filters on MATLAB

I remember someone having a similiar problem and it was because they were confusing text subscripts and numeric subscripts.

Probably an array issue though
Reputation Points: 10
Solved Threads: 5
Junior Poster
ShaneMcP is offline Offline
135 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: linux and windows xp
Next Thread in Computer Science Forum Timeline: Pseudo Code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC