Group: | Reading and Writing |
See also: | write readm |
Function: | read | |
Description: | read is a command to read data from a file. Each column of the file will be interpreted as a vector of numbers. |
Usage: | z = read (file) | |
Input: | ||
file | string with the name of the file to be read | |
Output: | ||
z | matrix |
write(reshape(1:15,#(3,5)),"my_data.dat") read("my_data.dat")
Contents of readVar [1,] 1 4 7 10 13 [2,] 2 5 8 11 14 [3,] 3 6 9 12 15
Group: | Reading and Writing |
See also: | write readm |