title: How to find and replace a string in Matlab
body: <p>So here is my problem:</p>
  
  <p>I have a list of names in Matlab in a cell array.</p>
  
  <p>I automatically create directories and .mat files for each name.</p>
  
  <p>My problem is that some of these names contains '/' and therefore everything go wrong when I create the directory…</p>
  
  <p>So I am trying to find an efficient way to find '/' and replace them.</p>
  
  <p>So far I've tried to find them using the findstr function. It then gives me a cell array with the indexes where '/' appears. So when the name doesn't contain any '/' it returns {[]} and when the function find it, it returns {[i]}.
  Now i'd like to have a logical condition that says if findstr is not empty then do something. I've tried with the isempty function but it doesn't work (it's never empty…)</p>
  
  <p>So does anyone have a solution to this?</p>
  
  <p>Thanks</p>