Main Content


Specify name of record file


You configure RecordName to be the name of the record file. You can specify any value for RecordName — including a directory path — provided the filename is supported by your operating system.

The MATLAB® software supports any filename supported by your operating system. However, if you access the file through the MATLAB workspace, you might need to specify the filename using single quotes. For example, suppose you name the record file my record.txt. To type this file at the MATLAB Command Window, you must include the name in quotes.

type('my record.txt')

You can specify whether data and event information are saved to one disk file or to multiple disk files with the RecordMode property. If RecordMode is index, then the filename follows a prescribed set of rules. Refer to Specifying a File Name for a description of these rules.

You can configure RecordName only when the object is not recording. You terminate recording with the record function. An object that is not recording has a RecordStatus property value of off.



Any instrument object

Read only

While recording

Data type

Character vector


The default record file name is record.txt.

See Also