User`s guide

R2007b
19-26
Compatibility Considerations
If you call hdfread in a script to perform an I/O operation and that operation fails,
your script will now terminate. Previously, because hdfread only warned when an I/O
operation failed, your script would continue processing.
Results From tempname Are More Unique
The tempname function now produces a string such as
C:\Temp\tpe51f2ba3_9ad3_490f_8142_58359c98f4a5
when Java is present, or a string like
C:\Temp\tp346976948758473
when nojvm is selected. Underscores are included in the name so you can use the
filename portion of it as a valid M-function name. If a string row vector is passed in as an
argument, that string is used instead of tempdir as the root.
Compatibility Considerations
Because the new string generated by tempname is generally longer than the string
constructed in earlier versions, there is a possibility of exceeding length restrictions,
especially if your program code passes a string to the tempname function. If you consider
this to be a potential problem, verify that the strings you pass to tempname will not
result in an overly long string being returned.
MATLAB Includes New Input Argument Validation Functions
MATLAB now includes two new functions that validate the input arguments passed
to functions. For example, you can use these functions to make sure that an input
argument is numeric and nonempty. The following table lists these functions with a brief
description.
Function Description
validateattributes Check validity of array
validatestring Check validity of text string