title: how to write vector with different length in a file?
body: <p>I have 7 vectors (L_mean_argil, L_Min_argil,    L_Max_argil,    R_mean_argil,   R_Min_argil,    R_Max_argil, Zero_argil) with different lengths and I want to create a .sae file with all the vectors. Here my code:</p>
  
  <pre><code>fileID = fopen('BN_for_prediciting_zeros_argilliti_v1.sae','w');
  fprintf(fileID,'L_mean_argil,   L_Min_argil,    L_Max_argil,    R_mean_argil,   R_Min_argil,    R_Max_argil, Zero_argil\n');
  fprintf(fileID,'%6.4f, %6.4f, %6.4f, %6.4f, %6.4f, %6.4f, %6.4f \n', L_mean_argil,  L_Min_argil,    L_Max_argil,    R_mean_argil,   R_Min_argil,    R_Max_argil, Zero_argil');
  fclose(fileID);
  </code></pre>
  
  <p>It doesn't write vectors properly. Someone can help me?</p>
  
  <p>I expect this:</p>
  
  <pre><code>L_mean_argil(1)   L_Min_argil(1)   ...  Zero_argil(1)
  L_mean_argil(2)   L_Min_argil(2)   ...  Zero_argil(2)
  ...
  L_mean_argil(end) L_Min_argil(end) ...  Zero_argil(end)    
  </code></pre>
  
  <p>But in the final part of some vectors, there will be empty cells associated to others with values</p>