Importing TSV files into MATLAB

175 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 4 de Abr. de 2023
Editada: MathWorks Support Team el 1 de Nov. de 2023
How can I import a tab-separated values file, also known as as TSV file, into MATLAB for analysis? 

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 1 de Nov. de 2023
Editada: MathWorks Support Team el 1 de Nov. de 2023
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 

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by