I am trying to plot figure with three plots inside it using subplot. The y-axis for all three plots is same from -1 to 1 while the x-axis is 2.5, 5, and 10 Respectively. The problem that is for all three plots the x-axis looks similar for all of them. I tried to use axis square but it changed plots to a square. I want the first plot to start from the left and end at a point while the second one start from the left and end at a point where it is a double distance of x-axis of the first plot. The third plot must start from the left and end at the point where the x-axis is thripple of the x-axis of the first plot. Is there any way to do that?
This is an example with an empty plot just to show how I want my figure to look like.
I used below code but unfortunately it is not working correctly
figure
subplot (3,1,1);
xlabel('x cm')
ylabel('y cm')
grid on
set(gca, 'XTick', 0:0.5:2.5)
set(gca, 'YTick', -1:1:1)
xlim([0 2.5]);
ylim([-1 1]);
% axis square
subplot (3,1,2);
xlabel('x cm')
ylabel('y cm')
grid on
set(gca, 'XTick', 0:1:5)
set(gca, 'YTick', -1:1:1)
xlim([0 5]);
ylim([-1 1]);
% axis square
subplot (3,1,3);
xlabel('x cm')
ylabel('y cm')
grid on
set(gca, 'XTick', 0:2:10)
set(gca, 'YTick', -1:1:1)
xlim([0 10]);
ylim([-1 1]);
% axis square



subplot's documentation they explain this