MATLAB Release Notes |
Programming Upgrade Issues
The issues involved in upgrading from MATLAB 7.0.1 to MATLAB 7.0.4, in terms of programming features, are
Reading Date Values with xlsread
In MATLAB versions prior to R14, date values read into MATLAB from an Excel spreadsheet using xlsread
were always imported as numeric date values. The R14 and later releases of MATLAB import dates in the format in which they were stored in the Excel file. Dates stored in string or date format are now imported as strings by xlsread
. Dates stored in numeric format are imported as numeric date values.
Because of a difference in the way Excel and MATLAB compute numeric date values, any numeric dates imported from Excel into MATLAB must be converted to the MATLAB format before being used in the MATLAB application. See Handling Excel Date Values on the function reference for xlsread
for information on how to do this.
Creating Nonscalar Arrays of Function Handles
Creation of nonscalar arrays of function handles by str2func
may be invalid or may return different results in future versions of MATLAB, but will continue to work in R14. To avoid this warning and prepare for this change, convert the cell array of strings to a cell array of function handles.
For more information, type help function_handle
and see the section entitled Note on Backward Compatibility.
Assigning Structures to Nonstructures
Because of a bug, previous releases of MATLAB have allowed structure assignment to a nonempty nonstructure to overwrite the previous value. MATLAB continues to allow this in this release, but generates a warning message. In a future release, attempting this type of assignment will generate an error.
For example, the second line of code shown here now generates a warning because it treats x
as if it were a structure:
To avoid this warning and future errors, make x
an empty structure or empty array as shown here:
Mathematics Upgrade Issues | Creating Graphical User Interface (GUIDE) Upgrade Issues |
© 1994-2005 The MathWorks, Inc.