title: Create output file in matlab containing numeric and string cells
body: <p>I am currently working on a project where I have to program the same tool both in Matlab and R and compare both software options.
  I started in R and now I am translating the code to Matlab but I am now stuck at the most important part. The output file that the tool creates after doing the analysis.
  Basically, my tool makes an analysis that loops <code>n</code> times, and after each loop I get many variables that go into an output table. So, to be more clear, after each loop I get variables:</p>
  
  <pre><code>A = 123
  
  B = 456
  
  C = 'string1'
  
  D = 'string2'
  
  E = 789
  </code></pre>
  
  <p>The values in each variable change after each loop, I just want to make clear that the variables are both numeric and string values since this is what causes my problem.</p>
  
  <p>In <code>R</code> what I do after each loop is:</p>
  
  <pre><code>outp &lt;- cbind(A,B,C,D,E)
  </code></pre>
  
  <p>and create a data frame containing each variable in one cell arranged horizontally to afterwards add the result of each loop vertically in a new data frame:</p>
  
  <pre><code>outp2 &lt;- rbind(outp2,outp)
  </code></pre>
  
  <p>so in the end I get a data frame (<code>outp2</code>) with A,B,C,D,E columns and <code>n</code> rows containing the values of each variable after each loop. So at the end of the looping process I can use <code>write.csv</code> function and create an output file of <code>outp2</code> that contains both numeric and string columns.</p>
  
  <p>I tried to do this in Matlab but I cannot find a function that can join the data in the same way I am doing it in R because using brackets <code>'[]'</code> only allows me to join numeric kind of variables. So basically my question is: How can I replicate what I am doing in R in Matlab?</p>
  
  <p>I hope I was clear enough, I found it a bit hard to explain.</p>