‘spec2Bruker’ writes spectra in the INFOS spectrum format into the TopSpin format. This may be used to view both real spectra and calculated spectra in other software, in particular Bruker TopSpin and CCPN. Note that if a spectrum has been loaded into MATLAB with ('getSpecBruker'), and then is later exported back into TopSpin, only the acquisition and processing parameters used by INFOS will be written in the new file, whereas other parameters may take on arbitrary values. Input format is as follows:
spec2Bruker(directory,spec);
If the directory to be written to already exists, and the user wishes to overwrite it without being prompted (normally, a warning prompt is given)
spec2Bruker(directory,spec,’overwrite’);
Note that the folder created will contain both acquisition and processing files, so that it can be opened in TopSpin without generating errors. However, only the parameters used by INFOS will be set correctly in these files. ‘spec2Bruker’ will not write imaginary data.