How to identify the baseline
Show older comments
I have force-time graph and I want to identify the baseline. How can I do this? Is there a function to find the baseline?

Accepted Answer
More Answers (1)
Image Analyst
on 31 Mar 2021
Maybe mask the signal to find values below a threshold and then take the mean
threshold = 10; % Or whatever.
baselineIndexes = abs(signal) < threshold;
baseLineValue = mean(signal(baselineIndexes));
yline(baseLineValue, 'Color', 'r', 'LineWidth', 2);
Categories
Find more on Data Type Identification 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!