<< maxplusdelay Max-Plus Algebra maxplusisccir >>

Max-Plus Algebra >> Max-Plus Algebra > maxpluseye

maxpluseye

Max-plus algebra identity

Calling Sequence

[Z] = maxpluseye(a,b)

Parameters

a
: input positive integer
b
: input positive integer
Z
: output matrix of size a X b.

Description

Maxplus algebra eye, this function returns a matrix of size a X b. If a = b, this function returns maxplus algebra identity of multiplication. If a or b is not a positive integers then this function returns error.

Examples

Z = maxpluseye(5,5)
Z  =

      0  -Inf  -Inf  -Inf  -Inf  
   -Inf     0  -Inf  -Inf  -Inf  
   -Inf  -Inf     0  -Inf  -Inf  
   -Inf  -Inf  -Inf     0  -Inf  
   -Inf  -Inf  -Inf  -Inf     0 
 
Z = maxpluseye(3,5)
Z  =

    0.  -Inf  -Inf  -Inf  -Inf
  -Inf    0.  -Inf  -Inf  -Inf
  -Inf  -Inf    0.  -Inf  -Inf

Author

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

See Also


<< maxplusdelay Max-Plus Algebra maxplusisccir >>