I'm working with a motion capture system which tracks body markers during walking. This system assignes zero value to markers displacement when it couldn't track them (i.e zero to missing value like figure rawdats).

when I used fourth order zero lag butterworth filter for smoothing, the regions of interest and some parts of the signal changed

I tried converting all zeros to nans (figure nans)and then interpolating the signal but this doesn't work because at the beginng of the aquistion signal is nan which makes the result signal messed.

How can I fill these missing data (interpolate signal with missing data) or smoothing the signal without losing regions of interest

More Rufaida Hussain's questions See All
Similar questions and discussions