Align two plots based on amplitude
Show older comments
I have two plots.
Plot A and Plot B
Both have there own data sets, which need to be a little calibrated but aligning the ampliture, so all average peaks are very close.
This is my plot as an example

As you can see the bottom plot data neds to be shifted up a little. Is there a tool which can help get a good alignment in y axis?
4 Comments
Image Analyst
on 14 Oct 2022
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Dharmesh Joshi
on 14 Oct 2022
Image Analyst
on 15 Oct 2022
Edited: Image Analyst
on 15 Oct 2022
Well the obvious solution would have been to just take a small subset of the data. Nonetheless, see what @Star Strider has done below with synthesized data and see if it's what you want. If not, then attach less than 5 MB subset of your data. It's what I would have done, which is to basically just assume one curve is just a linearly scaled and shifted version of the other curve.
Dharmesh Joshi
on 15 Oct 2022
Accepted Answer
More Answers (0)
Categories
Find more on Multirate Signal Processing 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!

