Save a matrix to the current directory.
filename = saveMatrix(figure)
filename = saveMatrix(figure, filename)
saveMatrix(matrix) generates a filename and saves the matrix
matrix to the associated file.
saves the matrix matrix to the file filename.mat.
matrix - Matrix to be saved
filename - (Optional) String containing filename
filename - Filename
>> filename = saveMatrix(eye(25,25))
saves a 25x25 identity matrix to
the current directory. Matlab returns the filename of the created
filename = 20030122T222633mat
In fact, the filename is a
combination of the saving date and saving time. This sample was stored on 22.01.2003 at 33 seconds past
22:26 and the current directory contained one new file: 20030122T222633mat.mat