MATLAB Function Reference Previous page   Next Page
cast

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

class


Previous page  case cat Next page

© 1994-2005 The MathWorks, Inc.