Institut de Robòtica i Informàtica Industrial

subsref

PURPOSE ^

Gets alpha-elements from a policy.

SYNOPSIS ^

function [e a]=subsref(P,S)

DESCRIPTION ^

   Gets alpha-elements from a policy.

   Retrives a given element (and the associated action) from a Policy
   object. 

   Example of use:  [e a]=P{1};

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function [e a]=subsref(P,S)
0002 %   Gets alpha-elements from a policy.
0003 %
0004 %   Retrives a given element (and the associated action) from a Policy
0005 %   object.
0006 %
0007 %   Example of use:  [e a]=P{1};
0008 %
0009   if strcmp(S.type,'{}')
0010     e=P.elements{S.subs{:}};
0011     a=P.actions{S.subs{:}};
0012   else
0013     error('Undefined Polcy subsref')
0014   end


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003