Function File: rval = append_save (filename, option, var_val_cell, varargin)

Add variables to existing save files. Works for all the types of save files that "save" supports.

Input:

  • filename, a string which specifies the existing save file.
  • option, the options you need to pass to the ’save’ function to save to the file type that you want.
  • var_val_cell, a 1x2 cell, with the first element being a string representation of the variable/symbol that you’re trying to add, followed by the actual variable/symbol itself.
  • varargin, any number of additional 1x2 cells, following the same format as the 3rd argument specified immediately before this one.

Output:

Currently, none. But there might be some debugging / error-code messages in the future.

  octave> B = ones(2,2);
  octave> append_save( "test.txt", "-binary", {"B", B } )

Package: io