title: Removing empty structure fields Matlab
body: <p>I'm facing the following problem: I have an array of structures like:</p>
  
  <pre><code>A.B(1,1).x = 'string'
  A.B(1,1).y = 12
  A.B(1,2).x = []
  A.B(1,2).y = []
  A.B(1,3).x = 'string2'
  A.B(1,3).y = 4
  </code></pre>
  
  <p>And I would like to remove the empty 2. row from this structure, so that in the end I get fields for (1,1) and (1,3). 
  I was trying to convert to cells, remove and then back to structure, but this way I had to retype names of fields.
  How is it possible to do it? Can it be done without conversion from structures?</p>
  
  <p>tia!</p>