Filter out misalignment of sensor signal

6 views (last 30 days)
Hi,
I have taken measurements with a lasersensor that moves along an axis and takes distance measurements to a wall for each position (1, 2, 3, ...). It seems that the axis that the sensor is mounted on is not perfectly parallel to the wall so that I can see a trend which you can see in the image below. The blue line is my acquired signal, the red lines describe the signal within a measurement position (X number of points for each measurement position).
How can I filter out the misaligned sensor axis and simulate a perfectly aligned axis that is parallel to the wall?
Thanks.

Accepted Answer

Star Strider
Star Strider on 9 Jul 2021
I have no idea what ‘perfectly aligned axis’ means.
If you want to remove the baseline trend, the best option for this signal is likely a highpass or bandpass filter.
If you want a different result, please be specific.
.
  8 Comments
Konvictus177
Konvictus177 on 10 Jul 2021
Thanks, I will experiment with it a bit and yes, I do have the toolboxes.
Star Strider
Star Strider on 10 Jul 2021
As always, my pleasure!
Out of my own curiosity, I would like to see what the desired result looks like, and the filter frequencies used to derive it.
.

Sign in to comment.

More Answers (0)

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!