<< soundsec 6-1-1 2023 >>
removed >> removed > 6-1-1 > sysdiag

sysdiag

соединение блочно-диагональной системы

Синтаксис

r = sysdiag(a1, a2, ..., an)

Аргументы

ai

constant, boolean, polynomial or rational matrices of any size.

подсистемы (т. е. усилители или линейные системы в пространстве состояний или в передаточной форме)

r

a matrix with a1, a2, a3, ... on the diagonal.

Описание

Возвращает блочно-диагональную систему, созданную из подсистем, расположенных по главной диагонали.

Given the inputs A, B and C, the output will have these matrices arranged on the diagonal:

[A 0 0 ; 0 B 0 ; 0 0 C]
.

If all the input matrices are square, the output is known as a block diagonal matrix.
Особенно используется в системных взаимосвязях.

For boolean matrices sysdiag() always returns a zero one matrix in the corresponding block ("true" values are replaced by 1 and "false" value by 0).

Примеры

s = poly(0,'s')
sysdiag(rand(2,2),1/(s+1),[1/(s-1);1/((s-2)*(s-3))])
sysdiag(tf2ss(1/s),1/(s+1),[1/(s-1);1/((s-2)*(s-3))])
// a matrix of doubles:
A = [1 0; 0 1], B=[3 4 5; 6 7 8], C=7
D = sysdiag(A,B,C)
//
sysdiag([%t %f; %f %t], eye(2,2), ones(3,3))

// a polynomial matrix:
s = %s;
sysdiag([s 4*s; 4 s^4], [1 s^2 s+2; 3*s 2 s^2-1])

// a rational matrix:
sysdiag([1/s 2*s/(4*s+3)], [s; 4; 1/(s^2+2*s+1)])

// a block diagonal sparse matrix:
S = sysdiag([1 2; 3 4], [5 6; 7 8], [9 10; 11 12], [13 14; 15 16])
S = sparse(S)

Смотрите также

История

VersionDescription
6.1.0 sysdiag() is declared obsolete. blockdiag() replaces it.
6.1.1 sysdiag() will be removed in the next Scilab version.

<< soundsec 6-1-1 2023 >>