| MATLAB® | ![]() |
B = cast(A, newclass)
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.
a = int8(5); b = cast(a,'uint8'); class(b) ans = uint8
![]() | case | cat | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |