Publisher review:autotextread reads data file; auto-detects column names and formats from hdr. A wrapper around textread() that generates the format string for you automatically (each column is numeric or string); puts data into a struct with fields named for the column names given by the header line of the file. Has worked with 36-column data file. Based heavily on Solution number 26207, but that requires you know how many columns, and their formats, and does not scale well to more than about 10 columns. For a similar utility for spreadsheets rather than text files, see Michael Robbins' spreadsheet2structure , File ID # 8127Syntax example:[a,colnames]=autotextread('autotextread_samp.txt')where the file contains the following:daynum stuff Adjective1 .25 slimy2 .23 speedy3 1.00 superYou get:a = daynum: [3x1 double]stuff: [3x1 double]Adjective: {3x1 cell}colnames = 'daynum' 'stuff' 'Adjective' Requirements: ยท MATLAB Release: R12.1
autotextread is a Matlab script for Scientific/Engineering scripts design by Andrew Ross.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
autotextread reads data file; auto-detects column names and formats from hdr.
Operating system:Windows / Linux / Mac OS / BSD / Solaris