Exporting excell from matlab
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all,
I want to export a cell as Exell file from MatLab. How can i do that?
Thx
採用された回答
Kautuk Raj
2023 年 6 月 3 日
To export a cell array as an Excel file from MATLAB, we can use the writetable function. This is an example which demonstrates how to do this:
% Create a sample cell array
myCell = {'Name', 'Age', 'Gender'; 'John', 25, 'Male'; 'Mary', 30, 'Female'};
% Convert the cell array to a table
myTable = cell2table(myCell(2:end,:), 'VariableNames', myCell(1,:));
% Write the table to an Excel file
writetable(myTable, 'myExcelFile.xlsx', 'Sheet', 1);
1 件のコメント
Dyuman Joshi
2023 年 6 月 3 日
Why convert cell to table when you can directly write it to an excel file?
その他の回答 (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!