Hi there
I am trying to filter som data but i get the warning: " Unable to use a value of type 'digitalFilter' as an index."
sfilter = Fx';noise = 0.5*randn(size(tA));xfilter = noise + sfilter;figure()plot(xfilter) dfilter = designfilt('lowpassfir', 'FilterOrder', 5, 'CutoffFrequency', 11, 'SampleRate', fs);yfilter = filter(dfilter,xfilter);plot(yfilter)
Where,
sfilter is a 1 x 59992 row vector
Fx' is a 1 x 59992 row vector
noise is a 1 x 59992 row vector
xfilter is a 1 x 59992 row vector
tA is a 1 x 59992 row vector
I hope you can help
Best Answer