| Author |
Message |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
21 May 2007 12:46 Signal processing of a sampled signal |
|
|
|
|
Hello!
I need some help with signal processing using matlab, i've got some sampled signals (the image is a clip from one of these). I want to get the signals without the dc-offset drifting and I want my signal to lay steady on 0 V and measure the peak-value off the signal.
How should I do this the simpliest way?
The sampled signal:
A little drawing of how I want the signal:
Thanks!
|
|
| Back to top |
|
 |
tzushky
Joined: 21 May 2007 Posts: 67 Helped: 10 Location: Sophia-Antipolis,France
|
21 May 2007 14:41 Signal processing of a sampled signal |
|
|
|
|
Looks like you have a carrier at low frequency, would be good to filter it out, if you know what it is....
Could this work? Or is it just samples without known origin...?
|
|
| Back to top |
|
 |
mondunno
Joined: 11 Jan 2007 Posts: 138 Helped: 11
|
21 May 2007 18:07 Signal processing of a sampled signal |
|
|
|
|
thats a non linear operation anyway please be clear.
do you want, every local minima to lie on the 0V axis?
or only the minima of the whole signal? (if this is the case: just subtract the signal with the minima value
|
|
| Back to top |
|
 |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
21 May 2007 21:47 Re: Signal processing of a sampled signal |
|
|
|
|
tzushky:
No its not a carrier, its not o constant frequency.
The signal is sampled from a piezoacoustic sensor for detection of human breath.
mondunno:
I want it like you mention first, to make every local minima lie on the 0V axis.
If that is possible?
|
|
| Back to top |
|
 |
armin
Joined: 18 May 2007 Posts: 14 Helped: 2
|
22 May 2007 1:01 Signal processing of a sampled signal |
|
|
|
|
Hi
I agree with tzushky, original signal contains Low frequency content which caused the drift.
this is the usual case when processing Biomedical signals & low freq. content is due to "MOTION ARTIFACT".
first of all use a LP filter to omit DC of your signal.
the result will have zero average.figure above shows a zero-DC signal :
<imgsrc="http://images.elektroda.net/22_1179791998.jpg">
since your data is periodic with only 1 local minimum in each period (I refer to your figure)
and with approximately constant period ~ 14 breaths/min.
therefore (after LP filtering) you can easily drift your signal in each period
with amount of minimum of that interval.
this should solve your problem ,but
if you are still not staisfied ,I have a general algorithm .so if you wanted to go further you better tell me.
hope it helped
Armin
|
|
| Back to top |
|
 |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
22 May 2007 1:31 Re: Signal processing of a sampled signal |
|
|
|
|
armin:
I assume that you mean a HP-filter instead of LP to eliminate the DC level?
I´ve tried with some HP-filters with a very low cutoff, about 0.1Hz.
But as I said in the earlier post the goal is to have the signal positive and laying on top of a 0V baseline.
Yes I'm very interesting in some algorithm for this problem.
Here is a picture of a whole signal showing how the DC-level appears:
|
|
| Back to top |
|
 |
armin
Joined: 18 May 2007 Posts: 14 Helped: 2
|
22 May 2007 15:43 Signal processing of a sampled signal |
|
|
|
|
Hi Poison
could you upload original data for me ?
thanks
Armin
|
|
| Back to top |
|
 |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
22 May 2007 21:10 Re: Signal processing of a sampled signal |
|
|
|
|
Yes of course I can do that.
This is a .txt file with sample, time and voltage.
|
|
| Back to top |
|
 |
tzushky
Joined: 21 May 2007 Posts: 67 Helped: 10 Location: Sophia-Antipolis,France
|
23 May 2007 9:46 Signal processing of a sampled signal |
|
|
|
|
May I ask what is the interest of having all minima on 0V line? What information can that give you? I'm not familiar with medial applications, so if you have the time could you give me a hint?
Thanks
|
|
| Back to top |
|
 |
echo47
Joined: 07 Apr 2002 Posts: 4206 Helped: 566
|
23 May 2007 10:30 Signal processing of a sampled signal |
|
|
|
|
To clamp the bottom of each cycle to zero, the signal needs to be distorted in some way. What ways are acceptable to you?
The signal contains many small high-frequency blips, possibly noise. You may want to attenuate them before performing the zero-clamping operation.
If you can describe the overall measurement goal, maybe someone can suggest a different or easier approach than the zero-clamping operation.
Can you provide a small MATLAB data read statement that parses your data file?
|
|
| Back to top |
|
 |
bulx
Joined: 07 Aug 2004 Posts: 171 Helped: 24
|
23 May 2007 13:53 Re: Signal processing of a sampled signal |
|
|
|
|
By the look of it, it looks like a low frequency signal ADDED to a high frequncy signal. If this the low frequency one available elsewhere or known in advance, you can just subtract it from the signal. You can laso try subtracting away your LPF output from the signal.
But these methods assume that there is no change in the peak amplitude of the high frequency component. if not, what you say cant be achieved without somehow distorting as already mentioned. Would be interesting to know what characteristic of this "zero-based signal" that you are trying to generate is of interest and if there is some other way to fin that.
-b
|
|
| Back to top |
|
 |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
24 May 2007 0:06 Re: Signal processing of a sampled signal |
|
|
|
|
Thank you for your answers!
No maybe it's not necessary at all to make it this way, it was just an idea I had...
The overall goal for the project is to measure the peak-peak value of the signal in intervals, for example 40-60 sec and 100-120 sec and so on.
In this intervals it's theoreticaly the mean pk-pk value that is interesting (but it may be unwanted transients in this intervalls that must be eliminated). This values should be saved and compared to earlier values.
The first idea was to eliminate the DC-component with some active filtering and then through a ADC and use a microcontroller to make the calculations.
Is this the best way to solve the problem, or some other ideas?
Thank you for your proposals...
|
|
| Back to top |
|
 |
Google AdSense

|
24 May 2007 0:06 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Poison_83
Joined: 26 Apr 2007 Posts: 11
|
27 May 2007 21:35 Signal processing of a sampled signal |
|
|
|
|
| Someone who maybe can help me with some ideas?
|
|
| Back to top |
|
 |