setxu
Set states and inputs in operating points
Syntax
op_new = setxu(op_point,x,u)
Description
setxu
set state and input values for an operating
point. Use this function for applications that require state and input values to
be specified in vector format, such as when using an operating in an optimization
problem using fmincon
.
op_new = setxu(op_point,x,u)
returns a new
operating point with the specified state and input values (x
and u
, respectively). Specify x
as either a
vector or structure with the same format as those returned from a Simulink® simulation. Specifying x
as a structure with time
is not supported. Specify u
as a vector. You can obtain both
x
and u
from another operating point
object with the getxu
function.
Examples
Alternatives
As an alternative to the setxu
function, set states and
inputs of operating points using the Model Linearizer app.
Version History
Introduced before R2006a
See Also
getxu
| initopspec
| operpoint
| operspec