Use of filter when using cumtrapz

I have created a perfect sine wave which i am doing various calculations on however when it comes to integrating using cumtrapz I find myself having to use a filter on the data in order to obtain sensible results. I am wondering why do I see drift in my data as I have a near perfect wave? Also I am wondering about he effect of a filter. Does a filter take data that is oscillating around a particular value and center it around zero

1 Commento

Matt J
Matt J il 24 Gen 2015
Modificato: Matt J il 24 Gen 2015
To help you find bugs in your code, we have to see that code...

Accedi per commentare.

Risposte (0)

Richiesto:

il 20 Gen 2015

Modificato:

il 24 Gen 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by