Member of the support class.
m = csvread(file)
m = csvread(file, range)
m = csvread(file, row, col)
Reads a file of values that are separated by commas and returns these values as a matrix.
| Name | Description |
| file | Specifies the file you want to read. The data in the file must be organized as a matrix. file is a string. |
| range | Specifies the range of the data you want to read. range is a four-element vector or a string. If range is a four-element vector, each element represents a row or column coordinate. The first two coordinates specify the row and column where the data begins, and the last two coordinates specify the row and column where the data ends. If range is a string, use spreadsheet notation to specify where the data begins and ends, for instance 'A1..B3'. |
| row, col | Specify the location at which you want to start reading the data. row and col are zero-based. |
| Name | Description |
| m | Returns the matrix of values. |
In the following example, LabVIEW creates test.csv in the LabVIEW Data directory. LabVIEW then reads the values in test.csv and returns these values as a matrix.
csvwrite('test', magic(5), 2, 2);