title: How to fill a cell array of strings with the indices of its cells in another array of strings?
body: <p>I'm trying to fill a cell array of strings <code>attributes</code> (764x1 cell) with the indices of each of its cells in another cell array of strings <code>data</code> (269x1) if the cell content (string) is found in <code>data</code>. I wrote the following code to do so: </p>
  
  <pre><code>for i=1:length(attributes)
      for j=1:length(data)
          attributes{i,1}=strfind(data{j,1}, attributes{i,1});
      end
  end
  </code></pre>
  
  <p>I'm getting empty cells:</p>
  
  <p><a href="https://i.stack.imgur.com/YNDMS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YNDMS.png" alt="inedx"></a></p>