I have been trying to use the subplot function in Matlab, using the following code:
x = 0:10;
figure
subplot(2,2,1); plot(x,data_matrix(1,:))
subplot(2,2,2); plot(x,data_matrix(2,:))
subplot(2,2,3); plot(x,data_matrix(3,:))
subplot(2,2,4); plot(x,data_matrix(4,:))
However, when I run this simple code, the only thing that displays is a single figure with a plot of the last data vector, data_matrix(4,:). No errors show up. Rather, subplots are simply not being generated. Am I doing something incorrectly, or is there a potential error with my programming environment that's keeping me from displaying subplots?

data_matrix(1,:).'.