MATLAB COMPILER RELEASE NOTES User's Guide Page 170

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 169
R2013a
5-10
mydates = {'11-Oct-2012','11-10-2012'};
datevec(mydates,'dd-mmm-yyyy')
ans =
2012 10 11 0 0 0
2012 10 11 0 0 0
In R2013a, both dates are silently interpreted as October 11, 2012 although you might
have intended '11-10-2012' to be in month-day-year format, representing November
10, 2012.
Date functions error on out-of-range quarter values
Valid values for quarter formats are Q1 through Q4 when converting date strings using
the datenum or datevec functions. Values outside this range throw an error. Previously,
the date functions accepted values outside the range, such as Q5, but returned incorrect
results.
Compatibility Considerations
To prevent errors when parsing quarter values, remove values outside the valid range
(Q1 through Q4) from your code.
String representations of large integers using exponential notation
The num2str function converts any large floating-point number that loses precision due
to hardware limitations to a string representation that uses exponential notation. Such
floating-point numbers are those greater than flintmax. Previously, num2str returned a
string representation in decimal notation.
This change in behavior affects only the syntax str = num2str(x). The following
example compares the output of num2str in R2013a to R2012b.
R2013a R2012b
num2str(30e+25)
ans =
3e+26
num2str(30e+25)
ans =
300000000000000000000000000
Page view 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 715 716

Comments to this Manuals

No comments