Matlab

From Colettapedia
Jump to: navigation, search
  • format shortG = don't print out numbers in scientific notation
  • to print out an array of strings to a file:
fid = fopen ('/Users/chris/data/input_list.txt','wt');
for j=1:180, fprintf( fid, '%s\n', christemp{j} );end
fclose(fid);