MATLAB COMPILER RELEASE NOTES User's Guide Page 572

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 571
R2007a
20-28
fileinfo =
name: 'myfile.txt'
date: '16-Mar-2006 13:34:01'
bytes: 251
isdir: 0
datenum: 7.3275e+005
This new output is also returned when running dir on an FTP server.
Using whos -file on Objects with Overloaded size or class Methods
MATLAB is unable to determine the true size of an object stored in a MAT-file if the
class of this object overloads the MATLAB size function. Likewise, MATLAB cannot
determine the true class name of an object if it overloads the MATLAB class function.
For these reasons, in previous versions of MATLAB, the command whos -file does not
return or display object size and class accurately if the class of that object overloads these
methods, but instead always returns 1x1 for the size and a default name for the class.
In this release, whos -file returns the empty matrix ([]) or displays a hyphen (-) for
objects that overload size, and returns and displays unknown for objects that overload
class.
Compatibility Considerations
If you use whos -file on objects in any of your programs, and if any of these objects
overloads the size function, then you need to be aware that MATLAB now returns []
instead of a 2–element vector of ones in the size field of the output structure.
mat2str Returns Correct Output for Strings
The documentation for the mat2str function states that the str output of this function
“is suitable for input to the eval function such that eval(str) produces the original
matrix to within 15 digits of precision.” The behavior of mat2str when given a character
array as input, however, did not abide by this rule. This inconsistency has been fixed in
this release.
In MATLAB Version 7.3, the eval command below generated an error.
s = mat2str('MATLAB')
s =
Page view 571
1 2 ... 567 568 569 570 571 572 573 574 575 576 577 ... 715 716

Comments to this Manuals

No comments