How to make two coordinate X axes in single plot
Show older comments
Hello, I would like to have a single plot with 2 linked X axes with different scales. Currently, I have plot with 2 axes (first in time, second in samples) with significantly different scales, however with same number of points - see attached plot.

I want both axes to zoom simultaneously and proportionally, if I use linkaxes it changes scale on one of the axes, which is problem given the difference in scales. Can you recommend me any solution? Thanks
Accepted Answer
More Answers (1)
Walter Roberson
on 16 Mar 2016
0 votes
plotxx() ?
1 Comment
Martin Hrabina
on 16 Mar 2016
Edited: Martin Hrabina
on 16 Mar 2016
Categories
Find more on Data Exploration 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!