writersp

Writes data in a RSP file.

Attention: Available only with Activate commercial edition.

Syntax

writersp(filename, timedata, data, headers, padding)

Inputs

filename
Path of the file.
Type: string
timedata
Time channel data. Time channel should be evenly distributed.
Size of matrix should be 1xN, where N is the number of time steps.
Type: matrix
data
Data channel data.
Size of matrix should be MxN size, M is number of data channels and N is number data points.
Type: matrix
headers
Header of time channel followed by header of data channels.
Headers are string.
Type: cell
padding
Number of points written to Rsp file is power of 2. Minimum number of points is 512.
Optional argument. Default zero is padded to the data. Last point is padded to the data if "lastpoint" is passed.
Type: string

Examples

Basic writersp example:

writersp('test1.rsp',[1,2,3],[11,12,13; 21, 22, 23])

Writing with headers example:

writersp('test2.rsp',[1,2,3],[11,12,13; 21, 22, 23],{'Time';'data1';'data2'})

Padding last point example:

writersp('test3.rsp',[1,2,3],[11,12,13; 21, 22, 23],{'Time';'data1';'data2'},'lastpoint')