image thumbnail


version (1.35 KB) by Jeff Miller
Read the numbers from an ASCII file, ignoring everything else.


Updated 06 Apr 2018

View License

Call this function with the name of a text file, and it returns a vector of the numbers found in that file. This can be useful for reading the numbers from files with variable line formats. Use reshape(outNums,k,[])' to change the GetNumsInAsciiFile output vector into a two-dimensional array when reading text files with k numbers in each row.

Cite As

Jeff Miller (2021). GetNumsInAsciiFile(sFName,varargin) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!