Left and right y-axis using plot() and fill(). (Matlab R2015a)

Hi,
I'm trying to visualize some measured data automatically. Therefore I have to plot one kind of data with the fill() function and the other one with the plot() function. Both should have the same x-axis. The plot() function should be linked to the left y-axis and the fill() function to the right y-axis. I already tried this by creating two separate axes handles. But unfortunately, then the first axes are hidden under the second. Do you have suggestions how to solve this problem? I thank you in advance!
Best, Ediz

Answers (0)

Asked:

on 18 May 2016

Community Treasure Hunt

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

Start Hunting!