caseread - Read case names from file

Syntax

names = caseread(filename)
names = caseread

Description

names = caseread(filename) reads the contents of filename and returns a string matrix of names. filename is the name of a file in the current directory, or the complete path name of any file elsewhere. caseread treats each line as a separate case.

names = caseread displays the Select File to Open dialog box for interactive selection of the input file.

Example

Read the file months.dat created using the function casewrite on the next page.

type months.dat

January
February
March
April
May

names = caseread('months.dat')
names =
January 
February
March  
April  
May   

See Also

tblread, gname, casewrite, tdfread

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS