title: All possible combinations of strings MATLAB
body: <p>UPD: I wish to say sorry to the StackOverflow community for asking a question without making effort to solve the problem by myself. From now on, I'll ask questions only if I really have serious problem</p>
  
  <p>I am now developing the program that generates all the possible permutations of string elements:</p>
  
  <p>I started with:</p>
  
  <pre><code>A = ['Bridge','No Bridge'];
  B = ['Asphalt','Concrete','Combined'];
  C = ['Fly Ash',' Sulphur','Nothing'];
  D = ['Two lanes','Four lanes with barriers'];
  E = ['Paid','Non-paid'];
  F = ['Mobile','Non-mobile'];
  N = length(A)*length(B)*length(C)*length(D)*length(E)*length(F);
  out = zeros(N,6);
  </code></pre>
  
  <p>But now I'm stuck with what to do next. The output needed is something like:</p>
  
  <pre><code>out = 
  
      'Bridge' 'Asphalt' 'Fly Ash' 'Two lanes' 'Paid' 'Mobile'
      'Bridge' 'Asphalt' 'Fly Ash' 'Two lanes' 'Paid' 'Non-mobile'
      'Bridge' 'Asphalt' 'Fly Ash' 'Two lanes' 'Non-paid' 'Mobile'
      'Bridge' 'Asphalt' 'Fly Ash' 'Two lanes' 'Non-paid' 'Non-mobile' etc
  </code></pre>
  
  <p>Please, could you suggest the most efficient way to do this?</p>