how can i plot graph one above another with same X-axis and changing Y-axis(attaching a rough model i need)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i want to plot one above another. X-axis scale is constant, but Y-axis changing..
0 Kommentare
Antworten (1)
Wayne King
am 20 Feb. 2014
Bearbeitet: Wayne King
am 20 Feb. 2014
X = randn(100,3);
X(:,2) = X(:,2)+10;
X(:,3) = X(:,3)+20;
subplot(311)
plot(X(:,1));
ax1 = gca;
set(ax1,'xtick',[]);
set(ax1,'xcolor','white')
subplot(312);
plot(X(:,2));
ax2 = gca;
set(ax2,'xtick',[]);
set(ax2,'xcolor','white')
subplot(313);
plot(X(:,3));
1 Kommentar
chaman lal dewangan
am 12 Dez. 2017
Bearbeitet: chaman lal dewangan
am 12 Dez. 2017
Answer is subplot function in matlab. Following link answers clearly. https://in.mathworks.com/help/matlab/ref/subplot.html
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!