Contaminating signals for testing filters on MATLAB

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Apr 2005
Posts: 2
Reputation: GC1234 is an unknown quantity at this point 
Solved Threads: 0
GC1234 GC1234 is offline Offline
Newbie Poster

Contaminating signals for testing filters on MATLAB

 
0
  #1
Apr 12th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 105
Reputation: jhdobbins is an unknown quantity at this point 
Solved Threads: 3
jhdobbins jhdobbins is offline Offline
Junior Poster

Re: Contaminating signals for testing filters on MATLAB

 
0
  #2
Apr 17th, 2005

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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 135
Reputation: ShaneMcP is an unknown quantity at this point 
Solved Threads: 5
ShaneMcP's Avatar
ShaneMcP ShaneMcP is offline Offline
Junior Poster

Re: Contaminating signals for testing filters on MATLAB

 
0
  #3
Apr 20th, 2005
I remember someone having a similiar problem and it was because they were confusing text subscripts and numeric subscripts.

Probably an array issue though
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC