Is there a way to add two different y-axis titles, each on different sides of the graph?

2 views (last 30 days)
I'm trying to plot voltage and current with respect to time and I don't want to use two different graphs. Could I add two different y-axis labels to the same graph and (in addition) change the scales of each axis independently?

Answers (1)

Stephen23
Stephen23 on 16 Feb 2015
Edited: Stephen23 on 16 Feb 2015
Try plotyy .

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!