title: MATLAB: Plot variables in workspace without manually changing its subscript
body: <p>I have 3 different sets of data in my variable workspace with a subscript by its name for identification.</p>
  
  <p>First Set in workspace:</p>
  
  <pre><code>lat1 = rand(10,1);
  long1 = rand(10,1);
  alt1 = rand(10,1);
  time1 = rand(10,1);
  </code></pre>
  
  <p>Second Set in workspace:</p>
  
  <pre><code>lat2 = rand(10,1);
  long2 = rand(10,1);
  alt2 = rand(10,1);
  time2 = rand(10,1);
  </code></pre>
  
  <p>Third Set in workspace:</p>
  
  <pre><code>lat3 = rand(10,1);
  long3 = rand(10,1);
  alt3 = rand(10,1);
  time3 = rand(10,1);
  </code></pre>
  
  <p>Each time, manually, I enter into the code and change the subscript, such as from <code>plot(time1,lat1) TO plot(time2, lat2)</code>.  I want to plot all these data sets using a for loop (or another construct choice) without having to change the subscript each time for plotting.  Something similar to below or another way to achieve the selected output:</p>
  
  <pre><code>for k = 1:3
  plot(time1(k), lat(k))
  plot(time1(k), long(k))
  plot(time1(k), alt(k))
  end
  </code></pre>