Importing data from txt file

Hello I have a text file: attached
I would like to take the numerical values of the first and second column and put them in matrices T and A respectively.

回答(1 个)

t = readtable('chichi_triplos_katagrafh.txt');
or use dlmread();

2 个评论

lason's "Answer" moved here:
none of them is working
readtable is only there after R2013b. Try importdata
M = importdata(filename, '\t', 1)

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by