Updated 25 Oct 2021
Andres (2023). txt2mat (https://www.mathworks.com/matlabcentral/fileexchange/18430-txt2mat), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Depth of field calculator based on 2D digital image correlation data, readMM_2D
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
· general compatibility with strings (string scalar as file name etc.)
more specific input argument checking for ReadMode (comment from T A) and NumericType
another fix for header line number bug and read mode "line"
fix for header line number bug reported by valere demeter
v06.60 · added option to select lines by line number ('SelectLineFun'), e.g. to skip every n-th line as suggested by Kaare · reduced memory footprint and improved speed during good/bad line filtering by working in chunks
v06.40 · better input argument check by inputparser, allowing input struct · minor changes in code and documentation
v06.17.3 · new read modes 'char' and 'cell' to provide txt2mat's preprocessing without numerical conversion · enable 'good line' filtering during file analysis · better version detection, (hopefully) suitable for MCR (thanks to Len for his remark)
v06.12 · added line filter as requested by Val Schmidt
v06.04 · better handling of replacement strings containing line breaks (initiated by DS) · allow '*' wildcard in file name
v06.01 · fixed bug: possible error message in file analysis when only header line number is given
v06.00 · introduction of read mode 'block' · 'MemPar' buffer value changed to scalar · reduced memory demand · modified help