| MATLAB Release Notes | ![]() |
Programming Features
MATLAB 7.0.1 adds the following programming features and enhancements:
New Character Set Conversion Functions
Unicode is becoming the preferred internal presentation of characters in MATLAB. For example, MATLAB functions such as disp require an input string in Unicode to display properly. To facilitate the use of different character sets, MATLAB provides two new functions to convert characters from a native character set to Unicode and back.
The native2unicode function converts from either a default, or user specified, native character set to Unicode. The unicode2native function does the opposite, converting from Unicode to either a default, or user specified, native character set. Note that any MATLAB string containing only US-ASCII characters does not require any conversion.
Type doc native2unicode or doc unicode2native for more information on these functions.
New Options for the depfun Function
The depfun function now supports these options:
regexprep Supports Character Representations in Replacement String
The regexprep function now supports the use of character representations (e.g., '\t' for tab, '\n' for newline) in replacement strings. For example, the following regexprep command replaces the | character with two horizontal tabs:
In Version 6, the same command yielded the string
nargin, nargout Operate on Function Handles
The nargin and nargout functions now accept a either a function name or function handle as an input argument. When called with a function handle, nargin and nargout return the number of input or output arguments you can pass to or receive from the function that the handle maps to.
fwrite Saves uint64 and int64 Types
The fwrite function can now save uint64 and int64 values. Previously fwrite supported these data types only on DEC Alpha systems. Now, it works on all supported MATLAB platforms.
mat2str Enhanced to Work with Non-double Types
In MATLAB 7.0.1, you can use the mat2str function to convert nondouble data types to a string that represents the input value. Type doc mat2str for more information.
| Mathematics Features | Graphics and 3-D Visualization Features | ![]() |
© 1994-2005 The MathWorks, Inc.