In order to convert Thermo .raw files to .mat files for use in MATLAB, we can use the "RawFileReader" module from the "thermo-raw-file" package. Here are the steps to do this using JavaScript:
index.tsx47 chars3 lines
index.tsx561 chars20 lines
Replace the "path/to/raw/file.raw" and "path/to/mat/file.mat" strings with the actual paths to your .raw and desired .mat files, respectively.
Run the JavaScript file using Node.js by running the following command in your terminal or command prompt:
index.tsx32 chars2 lines
This should convert your Thermo .raw file to a .mat file that can be used in MATLAB.
gistlibby LogSnag