spy(sys) plots the sparsity pattern of the
sparss model
sys. The plot displays the number of non-zero elements in each sparse
matrix of sys. You can right-click on the plot to select matrices to be displayed.
spy(AX,sys) plots the
sparsity pattern on the Axes or UIAxes object in the
current figure with the handle AX. Use this syntax when creating apps
with spy in the App Designer.
Sparse discrete-time state-space model with 1 outputs, 1 inputs, and 398 states.
Use "spy" and "showStateInfo" to inspect model structure.
Type "properties('sparss')" for a list of model properties.
Type "help sparssOptions" for available solver options for this model.
The output sys is a discrete-time sparss model object containing with 398 states, 1 input and 1 output.
You can use the spy command to visualize the sparsity of the sparss model object.
spy(sys)
You can also view model properties of the sparss model object.
properties('sparss')
Properties for class sparss:
A
B
C
D
E
Scaled
StateInfo
SolverOptions
InternalDelay
InputDelay
OutputDelay
Ts
TimeUnit
InputName
InputUnit
InputGroup
OutputName
OutputUnit
OutputGroup
Notes
UserData
Name
SamplingGrid
sys — First-order sparse model sparss model object
First-order sparse model, specified as a sparss
model object. When the sparse model sys contains interfaced or
interconnected components, use spy(xsort(sys)) to view the underlying
block arrow structure. For more information about the block arrow structure, see
xsort.
AX — Object handle Axes object | UIAxes object
Object handle, specified as an Axes or UIAxes object. Use AX to create apps with spy in the App Designer.