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.

casewrite

Write case names to file

Syntax

casewrite(strmat,'filename')
casewrite(strmat)

Description

casewrite(strmat,'filename') writes the contents of matrix strmat to filename. Each row of strmat represents one case name. filename is the name of a file in the current folder, or the complete path name of any file elsewhere. casewrite writes each name to a separate line in filename.

casewrite(strmat) displays the Select File to Write dialog box for interactive specification of the output file.

Examples

strmat = char('January','February',...
                 'March','April','May')
strmat =
January 
February
March  
April  
May 

casewrite(strmat,'months.dat')
type months.dat

January 
February
March  
April  
May   

Introduced before R2006a

Was this topic helpful?