Navigation

Operators and Keywords

Function List:

C++ API

dec2hex.m File Reference


Functions

 elseif (nargin==2) retval
else print_usage ()
endif endfunction !assert (strcmp(tolower(dec2hex(2748)),"abc"))
!error dec2hex ()
 !assert (strcmp(tolower(dec2hex(2748, 5)),"00abc"))
!error dec2hex (1, 2, 3)

Variables

function retval

Function Documentation

!assert ( strcmp(tolower(dec2hex(2748, 5)),"00abc")   ) 

endif endfunction !assert ( strcmp(tolower(dec2hex(2748)),"abc")   ) 

!error dec2hex ( ,
,
 
)

!error dec2hex (  ) 

elseif ( nargin  = =2  ) 

else print_usage (  ) 


Variable Documentation

function retval

Initial value:

 dec2hex (n, len)

  if (nargin == 1)
    retval = dec2base (n, 16)