csvread
- :
x =csvread(filename)¶ - :
x =csvread(filename, R1, C1)¶ - :
x =csvread(filename, R1, C1, range)¶ Load a comma-separated file of numbers into a matrix.
This is
dlmreadwith the delimiter fixed to a comma. R1 and C1 are zero-based offsets of the first value to read. When range is also given as[R1 C1 R2 C2], that rectangle alone defines the cells that are returned (the preceding offsets are ignored, matching MATLAB). Only numeric fields can be read; text fields come back as zero.