title: Get multiple axes handles at once
body: <p>I am looking for a one-liner to get multiple axes handles at once <em>in an object array</em> so that it can be passed into <code>linkaxes</code>. I am specifically looking for a single-line statement that does not use loops. I know I have done this in the past with a couple nested functions, but I can't figure out what I did.</p>
  
  <p>The function <code>gca</code> can be used to get the axes handle for a specific figure, though this functionality does not appear to be documented. For example, call <code>gca(3)</code> to get the axis handle for Figure 3. I thought in the past I could call <code>gca([1:4])</code> to get all four axes handles, but that does not seem to work.</p>
  
  <p>I know that I can use <code>get</code> by calling <code>get([1:4],'currentaxes')</code>, which returns a cell array of axes handles. However, I have not figured out a way to convert a cell array of objects into an object array.</p>
  
  <p>I'm using MATLAB R2015a.</p>