Matlab

From Colettapedia
Revision as of 16:45, 7 December 2010 by Ccoletta (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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);