![]() |
subsrefPURPOSE
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:
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 |