title: Matlab: How to generate 0x0 struct array?
body: <p>I got an .mat file with a variable <code>X</code>:</p>
  
  <pre><code>&gt;&gt; open('3rdPartyInputfile.mat')
  &gt;&gt; X
  
  X = 
  
  0x0 struct array with fields:
      a
      b
  </code></pre>
  
  <p>I tried to create a similar variable like:</p>
  
  <pre><code>&gt;&gt; X1(1).a = [];
  &gt;&gt; X1(1).b = [];
  &gt;&gt; X1(1)=[]
  
  X1 = 
  
  1x0 struct array with fields:
      a
      b
  
  
  &gt;&gt; X2(1).a = [];
  &gt;&gt; X2(1).b = [];
  &gt;&gt; X2(:,:)=[]
  
  X2 = 
  
  0x1 struct array with fields:
      a
      b
  </code></pre>
  
  <p>Which is close but not identical. The size here are 1x0 or 0x1, instead of the desired 0x0.</p>
  
  <p>How to get it to 0x0?</p>