title: find and replace values in cell array
body: <p>I have a cell array like this: [...</p>
  
  <p>0<br>
  129<br>
  8...2...3...4<br>
  6...4<br>
  0</p>
  
  <p>I just want to find and replace specific values, but I can't use the ordinary function because the cells are different lengths. I need to replace many specific values at the same time and there is no general function about how values are replaced. However, sometimes several input values should be replaced by the same output.</p>
  
  <p>so I want to say<br>
  for values 1:129<br>
  'if 0, then 9'<br>
  'elseif 1 then 50'<br>
  'elseif 2 or 3 or 4 then 61'
  etc...up to 129</p>
  
  <p>where these rules are applied to the entire array.</p>
  
  <p>I've tried to work it out myself, but still getting nowhere. Please help!</p>