Code covered by the BSD License  

Highlights from
Markov Decision Processes (MDP) Toolbox

image thumbnail
from Markov Decision Processes (MDP) Toolbox by Marie-Josee Cros
Functions related to the resolution of discrete-time Markov Decision Processes.

mdp_span.html
mdp_span description
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

  • W : a vector.

Evaluation

  • sp : the value of the span of the W vector.

Example
>> W = [1; 2; 3; 4];

>> sp = mdp_span(W)
sp =
   3


MDP Toolbox for MATLAB


MDPtoolbox/documentation/mdp_span.html
Page created on July 31, 2001. Last update on August 31, 2009.

Contact us at files@mathworks.com