Clear Filters
Clear Filters

Double y axis plot when two data sets are not starting from the same time

4 views (last 30 days)
I have two data sets A and B. A = 20x1 and B=11x1. I want to make double y axis plot with these datasets. But the plot should be start with A at first. From the 10th point B will start. Means A and B will not start together.

Accepted Answer

KSSV on 31 May 2022
A = rand(20,1);
B = rand(11,1);
idx = 1:length(A) ;
hold on

More Answers (0)


Find more on Line Plots 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!