Clear Filters
Clear Filters

Importing txt files... each column as individual variable

2 views (last 30 days)
Hello, I'm importing text files that are generated from another program. The txt files are tab delimited, with the first row as column headers.
I'd like to import the data so each column is a variable, with the title of the column header. So the data:
Knee Hip Ankle
45 12 16
47 14 18
49 16 20
becomes 3 variables called 'Knee', 'Hip' and 'Ankle'.
Any help would be massively appreciated. Thanks.

Accepted Answer

dpb
dpb on 26 Oct 2016

More Answers (0)

Categories

Find more on Data Import and Export in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!