<< binfact Max-Plus Algebra maxplusaltlinsol >>

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

intervalmatab

matrice interval

Calling Sequence

[A,B] = intervalmatab(m,n)

Parameters

m,n
: input positive integers.
A,B

: output matrices A,B of size m by-n such that A ≦B.

Description

Function returns integer random matrice A and B of size n by-n such that A ≦B.

Examples

[A,B]=intervalmatab(7,7);
// check that A≦B.
 A <= B
 ans  =
 
  T T T T T T T  
  T T T T T T T  
  T T T T T T T  
  T T T T T T T  
  T T T T T T T  
  T T T T T T T  
  T T T T T T T 
 // other example
A=maxplussprand(7,7,0.8);
[x,y]=intervalmatab(7,1);
// check that A⊗x ≤ A⊗y
maxplusotimes(A,x) <= maxplusotimes(A,y)
 ans  =
 
  T  
  T  
  T  
  T  
  T  
  T  
  T

Author

"Max-Plus Algebra Toolbox", ver. 1.02, July, 2009.

See Also


<< binfact Max-Plus Algebra maxplusaltlinsol >>