Navigation

Operators and Keywords

Function List:

C++ API

dec2bin.m File Reference


Functions

 elseif (nargin==2) retval
else print_usage ()
endif endfunction !assert (strcmp(dec2bin(14),"1110"))
!error dec2bin ()
 !assert (strcmp(dec2bin(14, 6),"001110"))
!error dec2bin (1, 2, 3)

Variables

function retval

Function Documentation

!assert ( strcmp(dec2bin(14, 6),"001110")   ) 

endif endfunction !assert ( strcmp(dec2bin(14),"1110")   ) 

!error dec2bin ( ,
,
 
)

!error dec2bin (  ) 

elseif ( nargin  = =2  ) 

else print_usage (  ) 


Variable Documentation

function retval

Initial value:

 dec2bin (n, len)

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