I am getting an error when I am trying to write a large dataset to an Excel file. The code is as follows:
a = rand(90000,1);DsData = dataset(a);export(DsData, 'XLSFile', 'Excel_testfile.xls')
??? Error using ==> dataset.export>writeXLSFile/writeXLSVars at 459 Error writing dataset variable 'a' to 'Excel_testfile.xls': Excel returned: Error: Object returned error code: 0x800A03EC.. Error in ==> dataset.export>writeXLSFile at 453 if mod(j,10) ~= 0, writeXLSVars(); end Error in ==> dataset.export at 120 writeXLSFile(a,xlsfileArg,writevarnames,writeobsnames,otherArgs{:});
Best Answer