Function Reference
Initialisation | Evolution | Statistics | Data Management
 
Introduction
RBN Overview
Using the Toolbox
Function Reference
Research/Gallery
Download
Literature/Links
Contact
 

 

 

 

 

 

 
 
 
 


saveMatrix()

Save a matrix to the current directory.

Syntax

filename = saveMatrix(figure)
filename = saveMatrix(figure, filename)

Description

saveMatrix(matrix) generates a filename and saves the matrix matrix to the associated file.

saveMatrix(matrix, filename) saves the matrix matrix to the file filename.mat.

Input:
matrix - Matrix to be saved
filename
- (Optional) String containing filename

Output: 
filename - Filename

Example

>> filename = saveMatrix(eye(25,25))

saves a 25x25 identity matrix to the current directory. Matlab returns the filename of the created file.

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

 

See also

displayEvolution()

 

 
 
 
      Christian Schwarzer - EPFL