xlswrite is truncating the values from the input matrix to the output files
Show older comments
Hi,
I'm having a problem with xlswrite truncating the matrix for after output to 5 decimal places. Unfortunately I need more than that, 9 probably.
I've seen some previous discussions of this here and the consensus seems to be that it's not xlswrite's problem. A demand for a screenshot is usually made. I have provided one showing the matrix (finalRaw) on the left, and the excel output on the right. I am calling the function using:
xlswrite('output.xls',finalRaw(:,:));
Please let me know if there's a way to get more precision out of this function.
James

Accepted Answer
More Answers (2)
James
on 29 Sep 2015
0 votes
Ariel Steele
on 24 Sep 2019
0 votes
I had this same problem, and the error that James mentions about MATLAB having to write to CSV instead of Excel is precisely the problem. Convert the array to a table then write the table to Excel. The correct number of digits will be used.
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

