Use this:
x=[0 1 2 3 4 5 6 7 8 9 10]
A = [0 0.62 0.85 0.86 0.87 0.88 0.89 0.90 0.91 0.92 0.93]
B = [0 0.32 0.60 0.75 0.86 0.90 0.88 0.89 0.90 0.91 0.92]
figure
subplot(1,2,1)
plot(x,A,'-*')
hold on
plot(x,B,'-^')
title('subplot 1')
ylabel('data2')
A=[3.0 8.7 8.85 9.1 9.2 9.3 9.4 9.5 9.5 9.5 9.5]
B=[3.0 7.9 8.75 8.9 9.0 9.1 9.2 9.3 9.3 9.3 9.3 ]
subplot(1,2,2)
plot(x,A,'-^')
hold on
plot(x,B,'-+')
title('Subplot 2')
xlh = xlabel('data1');
xlh.Position(1) = xlh.Position(1) - abs(xlh.Position(1) * 1.35);
Note: To shift x label, I have used accepted answer from here.
Best Answer