Importing TSV files into MATLAB
130 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 4 Avr 2023
Modifié(e) : MathWorks Support Team
le 1 Nov 2023
How can I import a tab-separated values file, also known as as TSV file, into MATLAB for analysis?
Réponse acceptée
MathWorks Support Team
le 1 Nov 2023
Modifié(e) : MathWorks Support Team
le 1 Nov 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
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!