FUNCTION REFERENCE

csvread

Read a comma-separated numeric file.

Read a comma-separated numeric file.

Syntax

M = csvread(filename)

Syntax

M = csvread(filename, r, c)

Syntax

M = csvread(filename, r, c, [r1 c1 r2 c2])

Same as dlmread with a comma delimiter; r and c count from 0 and skipped fields need not be numeric. With a range, r

and c must equal its first two values; an empty range is the error "Index

exceeds matrix dimensions.".

Example

csvread('c.csv')   % [1 2; 3 4]

Differences from MATLAB: when r and c differ from the range, MATLAB warns and

returns a zero-padded matrix; MatRust raises an error.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.