<< Max-Plus Algebra Max-Plus Algebra intervalmatab >>

Max-Plus Algebra >> Max-Plus Algebra > binfact

binfact

Max-plus algebra binary factorization

Calling Sequence

[f] = binfact(a)

Parameters

a
: A scalar of nonnegative integer
f
: vector of nonnegative integer

Description

This function return vector f. This vector is nonzero binary indices of the input, that is denoted by a. This function is used in maxpluspwr.

Examples

f = binfact(100)
f  =
     
   2.    5.    6.
// this means 100 = 2^2 + 2^5 + 2^6

Authors

"Max-Plus Algebra Toolbox", ver. 1.01, April, 2009.

See Also


<< Max-Plus Algebra Max-Plus Algebra intervalmatab >>