0
I am having problems saving Matlab data in Excel spreadsheets.
I took a very simple example code:
A = [1:257;1:257];
[status message] = xlswrite('teste.xls', A)
But it doesn’t work. The error that appears is:
message =
message: 'Error: Erro não especificado…'
identifier: 'MATLAB:COM:E0'
I have Office 2016 working perfectly and with Matlab 2016a. I already disabled the Excel add-ins, ran as Adm, created a spreadsheet to see if it would at least update and nothing.
Does anyone know what might be going on?
I tested your code and gave the following errors:
– Jônatas Trabuco Belotti
Error using dataset/export>writeXLSFile/writeXLSVars (line 420) Error writing dataset variable 'A10' to 'A_dataset.xlsx': Error: Unspecified error
– Jônatas Trabuco Belotti
Error in dataset/export>writeXLSFile (line 409) writeXLSVars();
– Jônatas Trabuco Belotti
Error in dataset/export (line 112) writeXLSFile(a,xlsfileArg,writevarnames,writeobsnames,otherArgs{:});
– Jônatas Trabuco Belotti
Error in Test (line 3) export(ds,'Xlsfile','A_dataset.xlsx')
– Jônatas Trabuco Belotti
I repeated on another computer, same installation characteristics mentioned (Matlab R2015a and Office 365). The output file "A_dataset.xlsx" occurred ok. No help from mat2datset has an alert: "The dataset data type Might be Removed in a Future release.". I do not believe this is the case for your version. Anyway, try running the help example export and see if at least this one works.
– cbe-user-99263