MATLAB Function Reference | Go to function: | Search Help Desk

uscanf | See Also

Universal scanning of an ASCII file formatted in columns of different types

Syntax

    d = uscanf(file, delimiter, format, class_position)

Description

`d = uscanf(file, delimiter, format, class_position)` The strings are put into cell arrays : use braces "{}" to access the strings. (more information, see §13-18 of 'Using Matlab') USCANF allows undetermined blanks between the delimiters USCANF uses the bad 'fgets', so it may be slow for large problems Inputs : file : ascii filename string string : classical format string such as fscanf and others. format : a string with 'n' for a numerical column and 's' for a string column class_position : integer that indicates the column where are the classes Ouputs : d.data : values of the numerical attributes% d.sdata : values of the nominal attributes (cell array) d.classes : values of the classes for each example

See Also

also

[ Help Desk ]