File Exchange

image thumbnail


version (1.33 KB) by Aslak Grinsted
A simple and flexible text data file parser

1 Download

Updated 16 Sep 2014

View License

Usage: [d,txt]=flexload(fname)

This file code will read all the numbers found in a given file. It is
flexible with whitespace, separators, etc.

fname: filename of input file;

d: a matrix with all the numbers in the file
txt: all the comments in the file. (prefixed with % or #);

Aslak Grinsted 2014

Cite As

Aslak Grinsted (2020). flexload.m (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Marie Maar


Better dealing of empty lines and fixed a bug.

* Improved number regexp
* performance improvements

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux