General way is the following: one can use fft to obtain Fourier spectrum of the signal or wavedec to obtain the wavelet harmonics. If you know what noise should be filtered, you remove corresponding harmonics. For example, if all ECG data has harmonics not larger than F0, ampltitudes of all harmonics larger than F0 should be set in 0. Then one makes inverse transform of the spectrum with dropped noise harmonics and obtain filtered signal.
how can i remove noise on my ECG diagram in matlab
with wavedec function or ?
If we understand your first question right, the following method can be helpful. For example, one has
>> a = [2.3 5.8 1.1 22.53 5.1];
and we need to find all points in the interval (5, 6). We can create the logical array
>> inds = a > 4 & a < 6
0 1 0 0 1
which contains ones on positions of the needed values. Now
If a is array of maximal values found in ECG diagram, you can sort them in the ascending order
>> b = sort(a)
1.1000 2.3000 5.1000 5.8000 22.530
and take corresponding values:
>> b(1) % minimal value
>> b(end) % maximal value
>> b(end - 1) % second maximal value
Respectfully i have another question which is related to Previous Que...
now i have Coordinate of every points in my diagram ( my diagram is look like a ECG diagram)
now in your opinion with these info how can i find specific point or better than specific line in my diagram ???
if you cannt explain my problem please help me that how to find the first maximum relative after all of min absolute in matlab ....
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
it works.....thankssssssssssssssssss aloooooot ...... really really really thanks