xlswrite error "specified data range is invalid or too large".

4 views (last 30 days)
I am receiving an error when trying to use the xlswrite function. No matter how I am using it I get the same error: "Error using xlswrite (line 219) The specified data range is invalid or too large to write to the specified file format. Try writing to an XLSX file and use Excel A1 notation for the range argument, for example, ‘A1:D4’."
I tried something very simple
d = {'Time', 'Temp';
12 98;
13 99;
14 97}
xlswrite('test.xlsx',d,1,'A1:B4')
I tried many different data ranges but nothing worked, same error.
Also tried not using a data range, xlswrite('test.xlsx',d), and still receive the same error.
What am I doing wrong?
Thanks.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!