Nguyen Lab Wiki

This Matlab program starts by calling a bash script to read a large data file from the MTS.

The bash script readMTS.sh needs to be placed in ~/Documents/MATLAB/ScriptMTS/readMTS.sh.

Then go to the terminal, navigate to the folder where the script is, and make your script executable (changing the permissions) by writing the command

chmod +rwx readMTS.sh

The bash script creates two text files in the same folder as your result file 'nameoffile':

  • a param_nameoffile containing the dimensions of the specimen, the temperature, and the headers of the columns
  • a data_nameoffile containing only numeric data

The Matlab code readMTS2.m then proceeds to read the parameters of the test and putting them in a structure (identical to the one created by readMTS.m). However, instead of having to read the data line by line, readMTS2.m reads the file data_nameoffile using the Matlab function load, which is much faster. It then puts all data in the final structure.

readmts2.m

readmts2.m

DokuWiki CC Attribution-Share Alike 4.0 International