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.
INPUTS:
fname: filename of input file;
OUTPUTS:
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 (2026). flexload.m (https://uk.mathworks.com/matlabcentral/fileexchange/47813-flexload-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Text Files in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
