MATLAB: Precision in writetable()

MATLABwritetable

Is there a way to use writetable() to export using only 2 decimals? To be able to directly export it to an excel file.

Best Answer

Sadly, no. A OutputFormat formatting string or NumericPrecision option is not available.
I presume since a table can contain any data type including cells too many possibilities are opened up that TMW hasn't wanted to venture down that road.
Does seem like worthy of some design consideration for the normal cases, though, granted...
For text files, the numeric format is long g.