Download AEG FN 6.19 E User guide
Transcript
GAUSS User Guide load x[] = dat1.asc; will load the data in the file dat1.asc into an Nx1 matrix x. This method is preferred because rows(x) can be used to determine how many elements were actually loaded, and the matrix can be reshape'd to the desired form: load x[] = dat1.asc; if rows(x) eq 500; x = reshape(x,100,5); else; errorlog "Read Error"; end; endif; For quick interactive loading without error checking, use load x[100,5] = dat1.asc; This will load the data into a 100x5 matrix. If there are more or fewer than 500 numbers in the data set, the matrix will a utomatically be reshaped to 100x5. Writing To write data to an ASCII file the print or printfm command is used to print to the auxiliary output. The resulting files are standard ASCII files and can be edited with GAUSS's editor or another text editor. The output and outwidth commands are used to control the auxiliary output. The print or printfm command is used to control what is sent to the output file. The window can be turned on and off using screen. When printing a large amount of data to the auxiliary output, the window can be turned off using the command screen off; This will make the process much faster, especially if the auxiliary output is a disk file. 22-4