how to save a UITable in Excell along with Rows & Column Names (Appdesigner, R2020a)
3 ビュー (過去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/390768/image.jpeg)
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 で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!