title: fprintf is not writing the file as it displays - matlab
body: <p>the code below displays at the matlab command panel perfectly well</p>
  
  <pre><code>fprintf('%f\n%f\n%f\n',MDR,TER,FAR);
  </code></pre>
  
  <p>each variable is displayed as new line</p>
  
  <p>but when i try this way and check the newly made text file via notepad i don't see any new lines</p>
  
  <pre><code>fileID=fopen('my_file.txt','w');
  fprintf(fileID,'%f\n%f\n%f\n',MDR,TER,FAR);
  fclose(fileID);
  </code></pre>
  
  <p>what might be the problem ? at the text file all variables are written without any new line or space</p>
  
  <p>thank you</p>