Prev: Figure default size
Next: Adding two functions
From: nethaji anandhavalli on 16 Apr 2010 10:17 hai, i have got a signal, for which the lower frequencies needed to be removed. so i have this: pls anyone could demonstrate wats going on here, especially at last function? "ecgdemowinmax"- is this matlab function. if not, what could be substituted instead of this one? % Remove lower frequencies fresult=fft(ecg); fresult(1 : round(length(fresult)*5/samplingrate))=0; fresult(end - round(length(fresult)*5/samplingrate) : end)=0; corrected=real(ifft(fresult)); % Filter - first pass WinSize = floor(samplingrate * 571 / 1000); if rem(WinSize,2)==0 WinSize = WinSize+1; end filtered1=ecgdemowinmax(corrected, WinSize);
From: Wayne King on 16 Apr 2010 10:27 "nethaji anandhavalli" <mydreamprojects(a)yahoo.com> wrote in message <hq9rhk$ekf$1(a)fred.mathworks.com>... > hai, > i have got a signal, for which the lower frequencies needed to be removed. so i have this: > pls anyone could demonstrate wats going on here, especially at last function? > "ecgdemowinmax"- is this matlab function. if not, what could be substituted instead of this one? > > % Remove lower frequencies > fresult=fft(ecg); > fresult(1 : round(length(fresult)*5/samplingrate))=0; > fresult(end - round(length(fresult)*5/samplingrate) : end)=0; > corrected=real(ifft(fresult)); > % Filter - first pass > WinSize = floor(samplingrate * 571 / 1000); > if rem(WinSize,2)==0 > WinSize = WinSize+1; > end > filtered1=ecgdemowinmax(corrected, WinSize); > Hi Nethaji, it is not a Matlab function. Hopefully you know where you got it and perhaps the author can help you understand it, or maybe it has some command line help, or comments in the code. Wayne
|
Pages: 1 Prev: Figure default size Next: Adding two functions |