wolffd@0: function vals = get_field(CPD, name) wolffd@0: % GET_PARAMS Get the parameters (fields) for a tabular_decision_node object wolffd@0: % vals = get_params(CPD, name) wolffd@0: % wolffd@0: % The following fields can be accessed wolffd@0: % wolffd@0: % policy - the table containing the policy wolffd@0: % wolffd@0: % e.g., policy = get_params(CPD, 'policy') wolffd@0: wolffd@0: args = varargin; wolffd@0: nargs = length(args); wolffd@0: for i=1:2:nargs wolffd@0: switch args{i}, wolffd@0: case 'policy', vals = CPD.CPT; wolffd@0: otherwise, wolffd@0: error(['invalid argument name ' args{i}]); wolffd@0: end wolffd@0: end