1

enter image description here

I'm trying to combine three pictures in Matlab, but I don't know how to combine them as a 1*3 graph, [graph1, graph2, graph3], an expected form I need is attached. I don't want these graphs in the same plot( ex. using hold on ) I want them separately in one graph.

Thank you.

SongTianyang
  • 139
  • 3
  • 9

1 Answers1

1

As Daniel and David told use [subplot][1] as in the following simple example.

x = 1:10;
y = x;

subplot(1,3,1);
plot(x,y);
xlabel('1:10');
ylabel('1:10');

subplot(1,3,2);
plot(x,y);
xlabel('1:10');
ylabel('1:10');

subplot(1,3,3);
plot(x,y);
xlabel('1:10');
ylabel('1:10');

Output:

enter image description here

Huá dé ní 華得尼
  • 1,248
  • 1
  • 18
  • 33