Why is output A not "1.2345e+01"? What does format "short" do?
Best Answer
Per the"Algorithms" notes in the doc,"If the largest element of a matrix is larger than 103 or smaller than 10-3, then MATLAB applies a common scale factor for the short and long format."
I hadn't really tested before, I thought it was a%g format but it doesn't actually follow those rules which count the number of significant digits to be shown. It's internal as above says purely only magnitude of exponent >3
They are not controlled by the same settings, so there is no reason why they have to be the same. It is possible that some features, such as the number of exponent digits, cannot be selected.
Best Answer