Simulink Control Design™ - MathWorks

(Tuis.) #1

initopspec


Initialize operating point specification values

Syntax


opnew=initopspec(opspec,oppoint)
opnew=initopspec(opspec,x,u)
opnew=initopspec(opspec,xstruct,u)

Description


opnew=initopspec(opspec,oppoint) initializes the operating point specification
object, opspec, with the values contained in the operating point object, oppoint. The
function returns a new operating point specification object, opnew. Create opspec with
the function operspec. Create oppoint with the function operpoint or findop.

opnew=initopspec(opspec,x,u) initializes the operating point specification object,
opspec, with the values contained in the state vector, x, and the input vector, u. The
function returns a new operating point specification object, opnew. Create opspec with
the function operspec. You can use the function getxu to create x and u with the
correct ordering.

opnew=initopspec(opspec,xstruct,u) initializes the operating point specification
object, opspec, with the values contained in the state structure, xstruct, and the input
vector, u. The function returns a new operating point specification object, opnew. Create
opspec with the function operspec. You can use the function getstatestruct or
getxu to create xstruct and the function getxu to create u with the correct ordering.
Alternatively, you can save xstruct to the MATLAB workspace after a simulation of the
model. See the Simulink documentation for more information on these structures.

Examples


Create an operating point using findop by simulating the magball model and extracting
the operating point after 20 time units.

15 Alphabetical List

Free download pdf