title: Error in saving variable as txt file , matlab
body: <p>I have a variable 'result' of size 170 rows and 1024 columns. I want to save this as txt file with each column separated by tab. Any ideas</p>
  
  <pre><code>path = 'E:\Data\fault\300';
  s = what(path);
  matfiles = s.mat; 
  l = numel(matfiles);
  for a = 1:l
    file = fullfile(path,char(matfiles(a)));
    load(file);
    result(:,a) = signal(1:1024);
  end
  save('300_faults.txt','result');
  </code></pre>
  
  <p>but the text in the file appears to be with this error</p>
  
  <pre><code>MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Thu Mar 02 11:55:20 2017                                        
  ð×r   A¶Ñ†�P´’2ÔÙ„=éfŠg^k£m!zÐ~nžöNÁo7]‡üWî£¡÷É�;&gt;Ñ¯ñ™˜
  </code></pre>
  
  <p>how to correct it ?</p>