MDP Toolbox for MATLAB |
mdp_span
Computes the span of a vector.
Syntax
sp = span(W)
Description
mdp_span computes the span of the W vector :
     max W(s) - min W(s)
       s                  s
Argument
Evaluation
Example
>> W = [1; 2; 3; 4];
>> sp = mdp_span(W)
sp =
   3
MDP Toolbox for MATLAB |