How to plot a second axis with vectors of different length?
Show older comments
I want to create a plot with 3 time series. First DO with values starting from 1998 to 2012 and for secondary axis two other time series (lets call them F and D) which only have values for 1991, 2001, 2006 and 2011. It should look like this (I can do it in excel but not in Matlab):

I tried
plotyy
function but it gave me error for not having same vector length. What can I do? Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Two y-axis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!