next up previous contents
Next: 5.2.2.7 Example Up: 5.2.2 Types of Computational Previous: 5.2.2.5 Computational function type

5.2.2.6 Computational function type 3

This Computational function type is specific to programming in Scilab. The calling sequence is as follow:
[y,x,z,tvec,xd]=test(flag,nevprt,t,x,z,rpar,ipar,u)
See table 5 for a description of arguments.
 
Table 5: Arguments of Computational functions of type 3. I: input, O: output.
I/O Args. description
I flag 0,1,2,3,4,5 or 6 (see Table 1)
I nevprt activation code (scalar)
I t time (scalar)
I x continuous state (vector)
I z discrete state (vector)
I rpar parameter (any type of scilabtt variable)
I ipar parameter (vector)
I u u(i) is the vector of i th regular input (list)
O y y(j) is the vector of j th regular output (list)
O x new x if flag=2, 4, 5 or 6
O z new z if flag=2, 4, 5 or 6
O xd derivative of x if flag=0 (vector), [ ] otherwise
O tvec times of output events if flag=3 (vector), [ ] otherwise
 


next up previous contents
Next: 5.2.2.7 Example Up: 5.2.2 Types of Computational Previous: 5.2.2.5 Computational function type
Scilab Group