can any one help me on this how to convert this text file into excel sheet..
1 次查看(过去 30 天)
显示 更早的评论
this is my text file
0 个评论
采纳的回答
Star Strider
2020-7-20
Try this:
T = readtable('RD-120101-031900.txt', 'PreserveVariableNames',1);
FirstFiveRows = T(1:5,:); % Sample Input Result
writetable(T, 'RD-120101-031900.xlsx'); % Write Excel File
T2 = readtable('RD-120101-031900.xlsx', 'PreserveVariableNames',1); % Read Excel File
FirstFiveRows2 = T2(1:5,:); % Sample Input Result
See the documentation for the various functions for details on their use.
.
6 个评论
更多回答(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!