Importing data from txt file

조회 수: 3 (최근 30일)
Iason
Iason 2014년 6월 5일
댓글: Image Analyst 2014년 6월 6일
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개)

Image Analyst
Image Analyst 2014년 6월 6일
t = readtable('chichi_triplos_katagrafh.txt');
or use dlmread();
  댓글 수: 2
Image Analyst
Image Analyst 2014년 6월 6일
lason's "Answer" moved here:
none of them is working
Image Analyst
Image Analyst 2014년 6월 6일
readtable is only there after R2013b. Try importdata
M = importdata(filename, '\t', 1)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by