| Statistics Toolbox | Search  Help Desk |
| casewrite | Examples See Also |
Write casenames from a string matrix to a file.
Syntax
casewrite(strmat,filename) casewrite(strmat)
Description
casewrite (strmat,filename) writes the contents ofstrmat to filename. Each row of strmat represents one casename. filename is the name of a file in the current directory, or the complete pathname of any file elsewhere. casewrite writes each name to a separate line in filename.
casewrite(strmat) displays the File Open dialog box for interactive specification of the output file.
Example
strmat = str2mat('January','February','March','April','May')
strmat =
January
February
March
April
May
casewrite(strmat,'months.dat')
type months.dat
January
February
March
April
May
See Also
gname,caseread,tblwrite