outputJacobian

Method of mss.

Compute the Jacobian of the output equations at an operating point.

Source: src/model/@mss/outputJacobian.m

Syntax

J = outputJacobian(sys, stateVector, inputVector)
J = sys.outputJacobian(x, u)

Description

outputJacobian is the output-equation counterpart of stateJacobian. It returns the first-order derivatives of

y=g(x,u) y = g(x,u)

with respect to the states and the inputs, evaluated at (x,u)(x,u):

J=[gxgu]noutput×(nstate+ninput). J = \left[\ \frac{\partial g}{\partial x}\ \ \frac{\partial g}{\partial u}\ \right] \in \mathbb{R}^{\,n_\text{output}\times(n_\text{state}+n_\text{input})}.

The two blocks are the CC and DD matrices of a local linearization; linearize obtains them by splitting J at column nState.

As in stateJacobian, the signal vector is assembled by scattering xx and uu through stateIndex and inputIndex, and the resulting columns are reordered into the same signal order — column kk is the derivative with respect to state kk, followed by the inputs — so any structure-matrix row layout works and J can be split at column nState. The tensor decides the evaluation path:

Input arguments

Argument Description
sys The mss model.
stateVector State operating point xx (sys.nState × 1).
inputVector Input operating point uu (sys.nInput × 1; [] if the model has no inputs).

Output arguments

Output Description
jacobianMatrix nOutput × (nState + nInput) Jacobian [g/xg/u][\,\partial g/\partial x\ \ \partial g/\partial u\,] at (x,u)(x,u).

Example

sys = rmss(3,1,1,4);
J = sys.outputJacobian([1; 0; -1], 0.5);

C = J(:, 1:sys.nState);        % output matrix
D = J(:, sys.nState+1:end);    % feedthrough matrix

See also

stateJacobian · linearize · outputValue · jacobian · mss


MyToolbox Documentation | Generated automatically by CI/CD pipeline