Importing TSV files into MATLAB

조회 수: 165 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2023년 4월 4일
편집: MathWorks Support Team 2023년 11월 1일
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일
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