From: Max Brega on
Hello,
I recently started to get the following behavior in matlab outputs which I illustrate with the following examples:

5001/9 = 555.6667 (ok)
5001/8 = 625.1250 (ok)
5001/7 = 714.4286 (ok)
5001/6 = 833.5000 (ok)
5001/5 = 1.0002e+003 (UNWANTED FORMAT!)
5001/4 = 1.2503e+003 (UNWANTED FORMAT!)
5001/3 = 1667
5001/2 = 2.5005e+003 (UNWANTED FORMAT!)

How can I get rid of this annoyance?
I honestly don't see any good reason for displaying such an easy number like 2500.5 as 2.5005e+003.

Please, note I tried to use " format 'short' " but the problem persists.
From: Max Brega on
Ok...
....problem fixed with "format short g".