Adjusting a baseline value on a curve that didn't baseline at zero
Afficher commentaires plus anciens
First off, let me say thank you to Star Strider who has really helped me on some of my basic questions. I am new to MATLAB, so please forgive me if any of my questions are overly simplistic.
I am working with force curves from animal locomotion trials. Many times when working outside, drift will happen in the z-channel and baseline will be either above or below zero. I am wondering if there is anyway to correct for this.

If I was to do this manually, I would take the average distance between zero on both sides of the curve over some set time frame (i.e., red boxes), then I would take the average between both sides. I would take this value and add, or subtract sometimes, this value from all the points on my curve. This would effectively adjust of baseline.
I have no idea how to do this in MATLAB, and really would really appreciate if someone could help me with the code.
Thanks,
Michael
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Predictive Coding dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!