The importdata function has the ability to work with a wide variety of data. Input parameters: fname The name of the file containing data.
Comments are only parsed where whitespace is accepted and do not act as delimiters. Given two scalar arguments r0 and c0, these define the starting row and column of the data to be read.
The lowest row index is 1. Note that this does not refer to the first non-comment lines, but the first lines of any type. When reading from a character string, optional input argument n specifies the number of times format should be used i. The column offset indicates the number of columns to skip before writing the numeric data.
If value is a cell array of strings, any string in the array will be used to split the input into words.
Alternatively, a spreadsheet style range such as "A If no size is specified then uint32 is used. If format is explicitly empty "" then textscan will return data in a number of columns matching the number of fields on the first data line of the input.
The lowest alphabetical index 'A' refers to the first column. If the input string does not match this literal, the processing terminates. As the string or file is read by columns rather than by rows, and because textscan is fairly forgiving as regards read errors, setting this option may have little or no actual effect.