<< mdp_check Markov Decision Processses (MDP) Toolbox mdp_computePR >>

Markov Decision Processses (MDP) Toolbox >> Markov Decision Processses (MDP) Toolbox > mdp_check_square_stochas

mdp_check_square_stochas

Checks whether a matrix is square and stochastic.

Calling Sequence

error_msg = mdp_check_square_stochas (T)

Description

mdp_check_square_stochas checks if the matrix (T) is square and stochastic (sums of rows equal to 1).

If it is the case, the function returns an empty error message. In the opposite case, the function returns an error message describing the problem.

Arguments

T

a matrix.

Evaluation

error_msg

error message.

error_msg is a character string which is empty if the matrix is square and stochastic. In the opposite case, the variable contains problem information.

Examples

-> T = [0.6116 0.3884;  0 1.0000];

-> error_msg = mdp_check_square_stochas(T)
error_msg =

Authors


Report an issue
<< mdp_check Markov Decision Processses (MDP) Toolbox mdp_computePR >>