Importing txt files... each column as individual variable

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.

 採用された回答

dpb
dpb 2016 年 10 月 26 日

1 投票

1 件のコメント

CarrotCakeIsYum
CarrotCakeIsYum 2016 年 10 月 26 日
Short and sweet, but worked a treat!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

製品

質問済み:

2016 年 10 月 26 日

コメント済み:

2016 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by