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일
편집: MathWorks Support Team 2023년 11월 1일

2 개 추천

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개)

카테고리

도움말 센터File 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