Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
[ret,x0,str]=simlinq1(t,x,u,flag);
M-file description of the SIMULINK system named SIMLINQ1 The block-diagram can be displayed by typing: SIMLINQ1. SYS=SIMLINQ1(T,X,U,FLAG) returns depending on FLAG certain system values given time point, T, current state vector, X, and input vector, U. FLAG is used to indicate the type of output to be returned in SYS. Setting FLAG=1 causes SIMLINQ1 to return state derivatives, FLAG=2 discrete states, FLAG=3 system outputs and FLAG=4 next sample time. For more information and other options see SFUNC. Calling SIMLINQ1 with a FLAG of zero: [SIZES]=SIMLINQ1([],[],[],0), returns a vector, SIZES, which contains the sizes of the state vector and other parameters. SIZES(1) number of states SIZES(2) number of discrete states SIZES(3) number of outputs SIZES(4) number of inputs. For the definition of other parameters in SIZES, see SFUNC. See also, TRIM, LINMOD, LINSIM, EULER, RK23, RK45, ADAMS, GEAR.
This function is called by | |
---|---|