How do I use FPRINTF to write numbers in exponential notation of variable exponent digits on a Windows computer in MATLAB?
Show older comments
In the official FPRINTF Help page, I observe that the way numbers are written in exponential notation differs depending on whether the computer on which MATLAB is running is a Windows machine or not (i.e., Linux, Solaris, or Mac). On Windows, a minimum of 3 exponential digits is printed for each number, whereas on everything else, a minimum of 2 is printed.
My application requires exponential notation with two digits in the exponent. I would like to be able to write my numeric arrays from MATLAB to a file where they are formatted in this way, on a Windows machine.
Accepted Answer
More Answers (0)
Categories
Find more on Software Development 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!