xlswrite is truncating the values from the input matrix to the output files
Ältere Kommentare anzeigen
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

Akzeptierte Antwort
Weitere Antworten (2)
James
am 29 Sep. 2015
0 Stimmen
Ariel Steele
am 24 Sep. 2019
0 Stimmen
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.
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


