Reading .xlsx data with header text

5 vues (au cours des 30 derniers jours)
simon
simon le 11 Juin 2012
Hi all, how to read .xlsx data which is having text a header. I want to the same format even after i save the data from matlab to .txt

Réponses (1)

Monika Jaskolka
Monika Jaskolka le 25 Mai 2021
The readtable function works for both spreadsheet (.xlsx) and text files (.txt). It will also consider the first row as the header.
T1 = readtable('File1.txt');
T2 = readtable('File2.xlsx');

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by