csvread

Purpose

Read a file of comma separated values into a matrix.

Synopsis

M = csvread('filename')
M = csvread('filename',r,c)
M = csvread('filename',range)

Description

M = csvread('filename') reads a file of values separated by commas into the matrix M.

M = csvread('filename',r,c) starts reading at the row-column location specified by (r,c).

M = csvread('filename',range) reads the range of values specified by the parameter range, where range is a four-element vector,

[upper_left_x upper_left_y lower_right_x lower_right_y]

See Also

csvwrite

(c) Copyright 1994 by The MathWorks, Inc.