Update:
I tried running the script without the code to plot the right y axis ticks, and the second line in the bottom x-axis is removed. Anyone knows a better way to add a right y-axis? Thanks a lot.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!