Prev: How to find factors
Next: pdsimul function
From: Pavlos on 27 Jun 2010 10:45 Hello, I have been trying quite a long to run the function 'pdsimul', which can simulate affine parameter models over time. Firstly, I have created through the use of function 'psys', an affine parameter dependent model. In particular, I have typedQ >> p = pvec('box', [1 3; 2 5]) p = 1 1 3 0 0 2 2 5 0 0 >> affsys = psys(p, [S0, S1, S2]); where S0, S1, S2 are system matrices. The syntax of the 'pdsimul' function is the following: [T,X,Y] = PDSIMUL(PDS,'TRAJ',TF,'UT',XI,OPTIONS) where (I copied - pasted the matlab help text) Input: PDS affine parameter-dependent system (see PSYS) 'TRAJ' name of the function p=TRAJ(t) specifying the parameter trajectory. This function takes a time t and returns a value p of the parameter vector. TF final time for the integration (initial=0) 'UT' name of the input function u=UT(t). The default is a step input. XI initial state of the system (Default = 0) OPTIONS control parameters for the ODE integration (see ODESET) Output: T integration time points X state trajectories (X(:,1) = first state, etc.) Y output trajectories (Y(:,1) = first output, etc) the only thing that I have managed to do correctly is defining the pds parameter. The parameters TF, 'UT', XI and OPTIONS can be omitted. I am only interested in creating a running example of this function. The major problem I have encountered so far, is that I cannot define the 'TRAJ' parameter. If someone could help me on that, or just provide me a simple working example, I would be obliged. Thank you in advance for your precious help.
|
Pages: 1 Prev: How to find factors Next: pdsimul function |