title: I want to print a character in a *.txt file using matlab (the keyboard input is number)
body: <pre><code>fileID = fopen('nums.txt','w'); %opens a.txt file
  s = input('s = '); %requests a number as input from the keyboard
  a = char(s) %converts the number to character
  fprintf(fileID,'%4.4f\n',a); %prints the character (not number) in a *.txt file
  </code></pre>
  
  <p>The purpose is to print a character in a *.txt file, which is written as number in advance. I type the number as input, and then I convert the number to the corresponding character.<br>
  Even though matlab returns me a = ! in the Command Window, the *.txt file include the number  (typed by keyboard) 33 (unconverted to the corresponding character, as it should be)</p>
  
  <p>Looking forward to your generous help. </p>