title: Extracting subfigure from plots to plot another figure and assigning variable to axes labels in Matlab
body: <p>I have a code which goes like this:</p>
  <pre><code>clear; close all; clc;
  SizeOfAxesAndPlotLine = 1.5;
  SizeOfAxesAndLegendFont = 12;
  
  %% 1st figure
  x1 = 1:0.01:2;
  y1 = 10:0.1:20;
  figure('units','normalized','outerposition',[0 0 1 1]) % For full screen
  subplot(3,1,1)
  plot(x1,y1,'LineWidth',SizeOfAxesAndPlotLine)
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y1 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 1')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  
  %% 2nd figure
  x2 = 2:0.01:3;
  y2 = 20:0.1:30;
  subplot(3,1,2)
  plot(x2,y2,'LineWidth',SizeOfAxesAndPlotLine)
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y2 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 2')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  
  %% 3rd figure
  x3 = 3:0.01:4;
  y3 = 30:0.1:40;
  subplot(3,1,3)
  p3 = plot(x3,y3,'LineWidth',SizeOfAxesAndPlotLine);
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y3 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 3')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  % print('-dpng','Figure1');
  
  %% 4th figure
  x4 = 10:0.01:20;
  y4 = 100:0.1:200;
  figure('units','normalized','outerposition',[0 0 1 1]) % For full screen
  subplot(3,1,1)
  p4 = plot(x4,y4,'LineWidth',SizeOfAxesAndPlotLine);
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y4 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 4')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  
  %% 5th figure
  x5 = 20:0.01:30;
  y5 = 200:0.1:300;
  subplot(3,1,2)
  plot(x5,y5,'LineWidth',SizeOfAxesAndPlotLine)
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y5 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 5')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  
  %% 6th figure
  x6 = 20:0.01:30;
  y6 = 200:0.1:300;
  subplot(3,1,3)
  plot(x6,y6,'LineWidth',SizeOfAxesAndPlotLine)
  set(gca,'linewidth',SizeOfAxesAndPlotLine)% Changes width of the axes
  xlabel('x values');
  ylabel('y values');
  legend({'Y6 Values'},'FontSize',SizeOfAxesAndLegendFont)
  title('Plot # 6')
  ax = gca;
  ax.FontSize = SizeOfAxesAndLegendFont;
  ax.YScale = 'log';
  % print('-dpng','Figure2');
  </code></pre>
  <p>This produce 2 figures which are as shown:
  <a href="https://i.stack.imgur.com/M2U5W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M2U5W.png" alt="Fig1" /></a>
  <a href="https://i.stack.imgur.com/yjEqb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yjEqb.png" alt="Fig2" /></a></p>
  <ol>
  <li>Now I want to create another figure (3rd one) taking plot # 3 and plot # 4 and putting together. How can this be accomplished? I was expecting that I can assign variables to individual subplots including the axes (say p3 and p4) and use the command something like this:
  <pre><code>figure('units','normalized','outerposition',[0 0 1 1]) % For full screen
  subplot(2,1,1)
  p3
  subplot(2,1,2)
  p4
  </code></pre>
  </li>
  <li>One can see I am suing <code>ylabel('y values');</code> six times. Is it possible that one can assign a variable (say <code>ylab</code>) to it and then use it wherever I want?</li>
  </ol>
  <p>I am using Matlab 2016a.</p>