Home > mpt > @mptctrl > subsref.m

subsref

PURPOSE ^

SUBSREF Indexed referencing for MPTCTRL object

SYNOPSIS ^

function fval = subsref(ctrl, X)

DESCRIPTION ^

SUBSREF Indexed referencing for MPTCTRL object

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Indexing of controller objects can perform one opf the following things:

 1. If "u=ctrl(x0)" is used, the controller is evaluated for a given state x0,
    i.e. it will return "u" such that u=mpt_getInput(ctrl, x0). 
    If "ctrl(x0, Options)" is used, it corresponds to 
    u=mpt_getInput(ctrl, x0, Options)

 2. If "ctrl.fieldname" is used, it will return the value of field "fieldname",
    e.g. "ctrl.Pn" returns the polyhedral partition of the controller. Type
    'struct(ctrl)' to see all accessible fields.

 If a vector of NaNs is returned, the problem is infeasible for a given value
 of the initial state x0.

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------

 see also SUBSASGN, MPT_GETINPUT

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003