Simulink State-Space model with Sparse Matrices

In the documentation of the linear state-space system block in Simulink it is written, that matrices with zeros are converted into sparse matrices.
However, I cannot use sparse matrices directly as system matrices A,B,C, or D. This is rather annoying, because I have to create FULL matrices first, whose memory requirements may be far too big.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 3 日

0 投票

Simulink software converts a matrix containing zeros to a sparse matrix for efficient multiplication.

1 件のコメント

Martin
Martin 2013 年 9 月 3 日
編集済み: Martin 2013 年 9 月 3 日
But I'd like to avoid creating the full matrix, because this requires memory of order n x n. If my matrix A represents, e.g., a finite-difference (or finite-volume or finite-element) discretization of the Laplacian operator, then I have only O( n ) non-zero entries.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Sparse Matrices についてさらに検索

製品

質問済み:

2013 年 9 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by