Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Note:

Example:

write(reshape(1:15,#(3,5)),"my_data.dat")
read("my_data.dat")
Result:

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

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000