Export dataset to excel file
9 次查看(过去 30 天)
显示 更早的评论
Hi. I want to export a dataset to excel file. The dataset is of 1x27 cell. using the export gives the following error.
export(ds,'XLSFile','hospital.xlsx')
Undefined function 'export' for input arguments of type 'cell'.
Error in feture_loop (line 16)
export(ds,'XLSFile','hospital.xlsx')
0 个评论
回答(1 个)
Adam Barber
2015-11-10
The error indicates that "ds" is a cell, and not a "dataset" variable. A dataset has a specific definition within MATLAB.
Take a look at xlswrite.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!