14 1 3 simple file i o.
Save mat file octave.
Save v1 v2.
Save the data in octave s text data format.
Better if i can save a mat file in octave.
The default format of files written by the save command can be controlled using the functions save default options and save precision.
If filename has no extension that is no period followed by text and the value of format is not specified then matlab appends mat if filename does not include a full path matlab saves to the current folder.
This is explained in the octave documentation.
Save options file struct struct f1 f2.
Hgsave saves figures to files fig by default.
Name of file specified as a character vector or string scalar.
S save v1 v2 save the named variables v1 v2 in the file file.
Diary filename saves all the text input in the command window to a text file.
Save options file v1 v2.
If you do not specify filename the save function saves to a file named matlab mat.
The special filename may be used to return the content of the variables as a string if no variable names are listed octave saves all the variables in the current scope.
The save and load commands allow data to be written to and read from disk files in various formats.
Octave s default so called mat file format is not a binary mat file at all it is in fact a text file format that octave developed for itself.
On platforms other than windows the file extension does not necessarily relate to the data format.
Save saves data to files mat by default not true in octave 4 files have no extension uisave includes user interface.
The files are saved in your current directory as seen on the top of the window.