Navigation

Operators and Keywords

Function List:

C++ API

cast.m File Reference


Functions

else error ("cast: type name `%s' is not a built-in type", typ)
endif else error ("cast: expecting type name as second argument")
endif else print_usage ()

Variables

function retval

Function Documentation

endif else error ( "cast: expecting type name as second argument"   ) 

else error ( "cast: type name `%s' is not a built-in type ,
typ   
)

endif else print_usage (  ) 


Variable Documentation

function retval

Initial value:

 cast (val, typ)

  if (nargin == 2)
    if (ischar (typ))
      if (any (strcmp (typ, {"int8"; "uint8"; "int16"; "uint16";
                             "int32"; "uint32"; "int64"; "uint64";
                             "double"; "single"; "logical"; "char"})))
        retval = feval (typ, val)