title: How to remove last element from cell array in Matlab?
body: <p>How to remove last element from cell array in Matlab?</p>
  
  <p><a href="https://www.mathworks.com/help/matlab/matlab_prog/delete-data-from-a-cell-array.html" rel="noreferrer">Documented method</a> does not work:</p>
  
  <pre><code>&gt;&gt; A = {'a', 'b', 'c'}
  A =
    1×3 cell array
      'a'    'b'    'c'
  &gt;&gt; A{end}=[]
  A =
    1×3 cell array
      'a'    'b'    []
  </code></pre>
  
  <p>I need array become <code>1x2</code>.</p>