I make the plots by the following code using subplots
plot_fig(i) = plot(data(1,:),data(i,:),'LineWidth',2.5);
plot_fig = plot(data(1,:),y_2(2,:),'LineWidth',2.5);
But I was wondering if can do the same but using stackedplot() considering that my top plot will have multiple plots in it.
The x-axis is same for the above 2 plots. That means these plots can be a stacked plot.