eprsave
Synopsis

Save spectral data in Bruker BES3T format.

eprsave(FileName,x,y)
eprsave(FileName,x,y,TitleString)
Description

This function saves the data set given by x (abscissa values) and y (spectra intensity values) in a set of .DTA and .DSC files using the base filename FileName. E.g. FileName = 'peter' would result in files peter.DTA and peter.DSC. The .DTA data file contains the data in binary format, and the .DSC description file contains information about the dataset in a readable text format.

Any text in the optional TitleString will be stored along the data and read by the Bruker software as the title if the dataset.

eprsave stores the data in BES3T format version 1.2.

Examples

To generate a simple Gaussian line and save it in Bruker BES3T format

B = linspace(300,400,1001);
spc = gaussian(x,340,20,1);
eprsave('mygauss',B,spc);