Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

caseread

Read case names from file

Syntax

names = caseread('filename')
names = caseread

Description

names = caseread('filename') reads the contents of filename and returns a matrix of names. filename is the name of a file in the current folder, 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.

Examples

Read the file months.dat created using the casewrite function.

type months.dat

January
February
March
April
May

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

Introduced before R2006a

Was this topic helpful?