Exporting workspace variables in excel sheet
5 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have 200 variables in my matlab workspace. how can I export this data into the excel sheet as it is in matlab ?
Variable names should be the headers in the excel sheet.
Thanks in advance !
回答 (1 件)
Ameer Hamza
2020 年 10 月 16 日
As Stephen mentioned, creating variable names dynamically is not a good coding practice. A better approach will be to create a table(), and column names can be the same as variable names. Then you can simply use writetable() and it will print variable name as the header row of the Excel sheet.
1 件のコメント
Stephen23
2020 年 10 月 16 日
"...creating variable names dynamically is not a good coding practice."
Also accessing them dynamically, as in this question.
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!