txt2mat

fast and versatile ascii data import capable of handling large text files

Download
Download

You are now following this Submission

Cite As

Andres (2026). txt2mat (https://nl.mathworks.com/matlabcentral/fileexchange/18430-txt2mat), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2016b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
7.0.0

· general compatibility with strings (string scalar as file name etc.)
· new read mode 'string'

Download
6.60.3

more specific input argument checking for ReadMode (comment from T A) and NumericType

Download
6.60.2

another fix for header line number bug and read mode "line"

Download
6.60.1

fix for header line number bug reported by valere demeter

Download
1.6.0

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

Download
1.5.0

v06.40 · better input argument check by inputparser, allowing input struct · minor changes in code and documentation

Download
1.4.0

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)

Download
1.3.0

v06.12 · added line filter as requested by Val Schmidt

Download
1.2.0

v06.04 · better handling of replacement strings containing line breaks (initiated by DS) · allow '*' wildcard in file name

Download
1.1.0

v06.01 · fixed bug: possible error message in file analysis when only header line number is given

Download
1.0.0

v06.00 · introduction of read mode 'block' · 'MemPar' buffer value changed to scalar · reduced memory demand · modified help

Download