Difference between revisions of "Matlab"
Jump to navigation
Jump to search
(New page: * format shortG = don't print out numbers in scientific notation) |
|||
Line 1: | Line 1: | ||
− | |||
* format shortG = don't print out numbers in scientific notation | * format shortG = don't print out numbers in scientific notation | ||
+ | * to print out an array of strings to a file: | ||
+ | <pre> | ||
+ | fid = fopen ('/Users/chris/data/input_list.txt','wt'); | ||
+ | for j=1:180, fprintf( fid, '%s\n', christemp{j} );end | ||
+ | fclose(fid); | ||
+ | </pre> |
Latest revision as of 16:45, 7 December 2010
- 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);