title: Appending a string to string array (Matlab)
body: <p>I'm trying to create a string array that has a certain string <code>length(vector)</code> number of times</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>for idx = 1:length(vectorName)
     str(idx) = 'someStr';
     strArray = [str];
  end
  </code></pre>
  
  <p>How do I append each string to the string array? </p>
  
  <p>I want the result to look something like: </p>
  
  <pre><code>strArray = ['someStr','someStr','someStr',...]
  </code></pre>
  
  <p>where the number of repetitions is equal to the length of the input vector.</p>
  
  <p>EDIT</p>
  
  <p>To give an example:</p>
  
  <pre><code>someVector = [1 1 1 1 1];
  string = 'someStr';
  </code></pre>
  
  <p>I want the result to be an array of string that looks like this:</p>
  
  <pre><code>strArr = [someStr someStr someStr someStr someStr];
  </code></pre>
  
  <p>so that the size(strArr) equals size(someVector)</p>