a) You shouldn't be using datenum. They're completely obsolete and everything you could do with them, you can do with datetime, and more.
b) The way a number is stored and the way a number is displayed are two completely different things. You can change the way matlab displays numbers at the command window wth the format command. Note that this will in no way affect the actual number, nor will it affects the way it is exported in a text or excel file. Again, this only affects the display in the command window >> dn = now;
>> format short
>> dn
dn =
7.3765e+05
>> format long
>> dn
dn =
7.376506267945486e+05
>> format longg
>> dn
dn =
737650.626794549
0 Comments
Sign in to comment.