Reading .xlsx data with header text
5 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Monika Jaskolka
2021-5-25
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');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!