how to save a UITable in Excell along with Rows & Column Names (Appdesigner, R2020a)
2 次查看(过去 30 天)
显示 更早的评论
i have a data in in a variable 'A', i want to save it in excell file with rows and column names as shown in fighure below.
i tried
A = app.d;
filter = {'*.xlsx'};
[file,path] = uiputfile(filter);
filename = fullfile(path,file);
xlswrite(filename,A);
but this only save table not row names(a,b,c,d,e) and colomn names(Data,Average). kindly guide.
采纳的回答
Mario Malic
2020-11-1
Use writetable to solve your problem, there's a Name-Value pair that corresponds to your need. Here's the example: https://www.mathworks.com/help/matlab/ref/writetable.html#btydetm-1
5 个评论
更多回答(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!