Main Content

Sparse State-Space Models

Large scale state-space models with sparse data

Efficiently represent, combine and analyze large scale state-space models with sparse data in MATLAB® and Simulink®. Using sparse representation is ideal and efficient since dense model representations for large-scale models are computationally expensive and may lead to very long execution times. For more information, see 稀疏矩阵的计算优点.

With the available functionality, you can:

  • Perform time-domain and frequency-domain response analysis using sparse models

  • Specify signal-based connections between sparse models and with other LTI models

  • Specify physical couplings between sparse model components

  • Transform sparse models between continuous-time and discrete-time representations

  • Linearize to a sparse model when your Simulink model has a Descriptor State-Space (Simulink) or Sparse Second Order block using linearize (Simulink Control Design) function

  • Linearize a structural or a thermal PDE model to a sparse model using linearize (Partial Differential Equation Toolbox) function

For more details about sparse models and the available functionality, see Sparse Model Basics.



sparssSparse first-order state-space model
mechssSparse second-order state-space model
getx0Map initial conditions from a mechss object to a sparss object
fullConvert sparse models to dense storage
imp2expConvert implicit linear relationship to explicit input-output relation
invInvert dynamic system models
getDelayModelState-space representation of internal delays
sparssdataAccess first-order sparse state-space model data
mechssdataAccess second-order sparse state-space model data
showStateInfoState vector map for sparse model
spyVisualize sparsity pattern of a sparse model
stepStep response plot of dynamic system; step response data
impulseImpulse response plot of dynamic system; impulse response data
initialSystem response to initial states of state-space model
lsimPlot simulated time response of dynamic system to arbitrary inputs; simulated response data
bodeBode plot of frequency response, or magnitude and phase data
nyquistNyquist plot of frequency response
nicholsNichols chart of frequency response
sigmaSingular value plot of dynamic system
passiveplotCompute or plot passivity index as function of frequency
dcgainLow-frequency (DC) gain of LTI system
evalfrEvaluate system response at specific frequency
freqrespEvaluate system response over a grid of frequencies
interfaceSpecify physical connections between components of mechss model
xsortSort states based on state partition
feedbackFeedback connection of multiple models
parallelParallel connection of two models
appendGroup models by appending their inputs and outputs
connectBlock diagram interconnections of dynamic systems
lftGeneralized feedback interconnection of two models (Redheffer star product)
seriesSeries connection of two models
linearizeLinear approximation of Simulink model or subsystem
linearizeOptionsSet linearization options
linioCreate linear analysis point for Simulink model, Linear Analysis Plots block, or Model Verification block
linearizeLinearize structural or thermal model
linearizeInputSpecify inputs to linearized model
linearizeOutputSpecify outputs of linearized model


Descriptor State-SpaceModel linear implicit systems
Sparse Second OrderRepresent sparse second-order models in Simulink