title: matlab code that previously worked using strcmp to pull values associated with strings out of a cell array now does not work
body: <p>This is an old code I have used before but I simply modified it for a new set of data. I keep getting the error at the bottom though and I have no idea why. Any help would be greatly appreciated!! I put the entire code below.</p>
  
  <pre><code>sites = importdata('genes_with_mir148_sites.txt');
  
  Data = importdata('gene_exp_LFC_table.txt');
  names = Data.textdata
  LFC = Data.data
  
  C = intersect(names, sites)
  
  LFCcell = {names, LFC}
  L = zeros(length(C),1);
  for i1=1:length(C)
  L(i1)=LFC(strcmp(C(i1),names));
  end
  
  Sites = {C,L}
  </code></pre>
  
  <p>And I get the error: In an assignment  A(I) = B, the number of elements in B and I must be the
  same.</p>