I have been doing speech processing in matlab2016, and am stack on how to remove DC component. I tried using the the function y=x-x(mean) but it seems not to workout.

  • $\begingroup$ What do you mean by the fact it doesn’t work? $\endgroup$ – jojek Apr 14 '18 at 9:15
  • 3
    $\begingroup$ Could you try y=x-mean(x) instead? $\endgroup$ – Laurent Duval Apr 14 '18 at 9:42

You can try y = detrend(x,'constant') in Matlab. This is to remove your so-called DC component.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.