sm4tomatlab()
sm4tomatlab.m reads all the .sm4 files in the current directory and converts and saves them as .mat structures. The format is dictated by the sm4reader.m file.
For files which are not convertible due to lack of data or which are not accounted for yet (e.g. originally AFM and PLL channels were not read) are skipped and output as an array of cells containing their file names (skippedFiles).
Note that if the file name contains period characters (.), before they are saved the name will be changed to underscores (_) to prevent issues from occurring in MATLAB.
Further information on SM4TOMATLAB and sm4reader can be found at:
http://unh2d.weebly.com/using-sm4-files-in-matlab.html
http://unh2d.weebly.com/sm4readerm-and-the-mat-file-format.html
The program was developed in Shawna Hollen's 2D Materials lab at UNH (http://unh2d.weebly.com/).
Citar como
Jason Moscatello (2026). sm4tomatlab() (https://la.mathworks.com/matlabcentral/fileexchange/62562-sm4tomatlab), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: sm4reader(fileID)
Inspiración para: STSplot(yPlot,yOffset,repetitionNumber, varargin)
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
