title: How to create idendical variables in MATLAB from an array of variable names?
body: <p>I have the following code in Matlab:</p>
  
  <pre><code>a = zeros(23,1)
  b = zeros(23,1)
  c = zeros(23,1)
  </code></pre>
  
  <p>How can I write it more compactly? I was looking for a solution that is something like this:</p>
  
  <pre><code>str = {'a','b','c'}
  for i = str{i}
      i = zeros(23,1)
  end
  </code></pre>
  
  <p>But I can't find a way to do it properly without an error message. Can someone help please?</p>