| MATLAB Function Reference | ![]() |
Cast variable to different data type
Syntax
Description
B = cast(A, newclass) casts A to class newclass. A must be convertible to class newclass. newclass must be the name of one of the built in data types.
Examples
See Also
| case | cat | ![]() |
© 1994-2005 The MathWorks, Inc.