Personal Edit of filtfilt function code
Mostra commenti meno recenti
Hi
I'm trying apply my personal changes to filtfilt function, to calculate just the output of the center sample? Indeed Im designing a filter with designfilt function, then I apply this filter to a signal, like a sliding window. for example if I have 16000 samples, I use a window of 1001 samples and apply the filter to this window, and just use the 500th sample. then I repeat this construction to a 100 samples window with center of 501th sample., and this has been repeated to the 15500th sample. So I need just the center output of every calculation. So I'm trying to edit htis function.
but I have a problem. I use designfilt function, so I have D coefficients not a,b. when I explore the code of filtfilt function there is not any description to how convert this coefficients to eachother and in the code just worked with a,b coefficients, not D.
anyone has any idea that what should I do?
Sincerely
2 Commenti
Star Strider
il 28 Ott 2019
‘anyone has any idea that what should I do?’
First, do not edit filtfilt or any other built-in function.
Do the filtering and then do whatever windowing you want on the filtered signal. (I have no idea exactly what you are doing, so I can offer no specific suggestions.)
mojtaba pourdara
il 30 Ott 2019
Risposte (0)
Categorie
Scopri di più su Digital Filtering in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!