trying to use 'readtable' command to read txt, file, but I couldn't specify the 'range' option

Hi, I was trying to use 'readtable' to read a very simple txt file 'abc.txt' as follows
1 2 3 4
5 6 7 8
with this command
T = readtable('abc.txt', 'Delimiter',' ','range','A:B')
but I was always told
'Invalid parameter name: range.'
Is this because 'range' option only applies to excel file? Thank you.

 採用された回答

MHN
MHN 2016 年 3 月 30 日

1 投票

Yes, Range is for spreadsheet files only.

2 件のコメント

MHN
MHN 2016 年 3 月 30 日
.xls, .xlsb, .xlsm, .xlsx, .xltm, .xltx, or .ods for spreadsheet files
Qingyu
Qingyu 2016 年 3 月 30 日
Thank you!

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

その他の回答 (0 件)

製品

質問済み:

2016 年 3 月 30 日

編集済み:

2016 年 3 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by