csvread

csvread(filepath) returns a numeric matrix from file defined in filepath. Characters will be changed into 0.

Examples

> X = rand(2,3)#

     0.250924    0.0460958     0.676816
     0.680573     0.320973     0.155359

> csvwrite('randnumbers.txt',X)

     [ans:1]

> csvread('randnumbers.txt')#

     0.250924    0.0460958     0.676816
     0.680573     0.320973     0.155359

Resources

See also

csvwrite | readtable