Importing TSV files into MATLAB

165 次查看(过去 30 天)
How can I import a tab-separated values file, also known as as TSV file, into MATLAB for analysis? 

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2023-11-1
The TSV file may be imported using the “readtable” function as a text file, while specifying the delimiter as a tab.
Please refer to the line of code below for a demonstration:
t = readtable("data.tsv", "FileType","text",'Delimiter', '\t');
For more information on the "FileType" options, please refer to the documentation link below:
https://www.mathworks.com/help/matlab/ref/readtable.html#namevaluepairs 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by