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: read readm savemac

Function: write
Description: write writes an array into a file.

Usage: write (x, file {, mode {,fmt}})
Input:
x multidimensional array
file string with the name of the file
mode string, mode
fmt string, format

Note:

Example:

write(reshape(1:15,#(3,5)),"my_data.dat","x")
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: read readm savemac

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, 28.6.1999