If invoked with a single output argument, Octave returns data instead Since it seems thatīoth of these cases are likely to be the result of some sort of error, Symbol table and given the value from the file. Also, if a variable is marked as global in a fileĪnd a local symbol exists, the local symbol is moved to the global Global symbol with the same name already exists, it is loaded in the If a variable that is not marked as global is loaded from a file when a If load is invoked using the functional form For example, to restore the variables saved in the file As with save, you may specify a list of variablesĪnd load will only extract those variables with names that The file ‘data’ in Octave's binary format.Ĭommand: load options file v1 v2. Saves the variable ‘a’ and all variables beginning with ‘b’ to
Restored at a later time using ‘load’, it will be restored as a Variables also saves the global status of the variable, so that if it is Save the data in Octave's text data format.Įxcept when using the Matlab binary data file format, saving global Match all lower and upper case alphabetic characters. If the firstĬharacter is ! or ^, match all characters except those Match the list of characters specified by list. The list of variables to save may include wildcard patterns containing This is equivalent to compressing the file with gzip outside Octave. Use the gzip algorithm to compress the file. You should use this format only if you know that all the Save the data in HDF5 format but only using single precision.
#How to use gnu octave portable
(HDF5 is a free, portable binary format developed by the NationalĬenter for Supercomputing Applications at the University of Illinois.) Save the data in the binary format written by Matlab version 4. Save the data in Matlab's v6 binary data format. Save the data in Matlab's v7 binary data format. Values to be saved can be represented in single precision.
Save the data in Octave's binary data format but only using single Save the data in Octave's binary data format. ) must be specified as character strings. Then the options, file, and variable name arguments If save is invoked using the functional form Modify the output format override the format specified by Save command are listed in the following table. If no variable names are listed, Octave savesĪll the variables in the current scope. The special filename ‘-’ can be used to write the Once one or more variables have been saved to a file, they can beĬommand: save options file v1 v2.
#How to use gnu octave code
Written by the save command can be controlled using the functionsĪs an example the following code creates a 3-by-3 matrix and saves it The save and load commands allow data to be written to and