title: matlab: regexp and split, and picking some cells
body: <p>I have the following input:</p>
  
  <pre><code>&gt;&gt; data(1).Header
  ans =
    AF051909 |392-397:CAGCTG| |413-418:CAGGTG|
  </code></pre>
  
  <p>I needed to save them to cells as <code>{'392-397', 'CAGCTG'; '413-418', 'CAGGTG';}</code></p>
  
  <p>I so I used regexp to do so with the following code:</p>
  
  <pre><code>struKm(1).trueBinding = regexp(data(1).Header,'\s\||\:|\|','split');  
  </code></pre>
  
  <p>this returns:</p>
  
  <pre><code>&gt;&gt; struKm(1).trueBinding
  ans = 
    'AF051909'    '392-397'    'CAGCTG'    ''    '413-418'    'CAGGTG'    ''
  </code></pre>
  
  <p>as you can see there are to empty cells and I tried two find out why they are there but failed.</p>
  
  <p>I also tried to ignore that and continue to picking up the cell that I need for the rest of my code which is <code>'CAGCTG'</code> and <code>'CAGGTG'</code>. I have this code to pick them up:</p>
  
  <pre><code>[r1,r2] = ismember(struKm(1).trueBinding,set)
  </code></pre>
  
  <p>it return zeros.</p>
  
  <p>Can someone help with two issues please?</p>
  
  <p>Regards, A.</p>