Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский

# markp2ss

Markov parameters to state-space

### Syntax

`sl = markp2ss(markpar, n, nout, nin)`

### Arguments

markpar

matrix

n,nout,nin

integers

Sl

`syslin` list

### Description

given a set of `n` Markov parameters stacked in the (row)-matrix `markpar` of size `nout`X`(n*nin) markp2ss` returns a state-space linear system `sl` (`syslin` list) such that with `[A,B,C,D]=abcd(sl)`:

```C*B = markpar(1:nout,1:nin),
C*A*B =markpar(1:nout,nin+1:2*nin),....```

### Examples

```W=ssrand(2,3,4);   //random system with 2 outputs and 3 inputs
[a,b,c,d]=abcd(W);
markpar=[c*b,c*a*b,c*a^2*b,c*a^3*b,c*a^4*b];
S=markp2ss(markpar,5,2,3);
[A,B,C,D]=abcd(S);
Markpar=[C*B,C*A*B,C*A^2*B,C*A^3*B,C*A^4*B];
norm(markpar-Markpar,1)
//Caution... c*a^5*b is not C*A^5*B !```

### See also

• frep2tf — transfer function realization from frequency response
• tf2ss — transfer to state-space
• imrep2ss — state-space realization of an impulse response

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << lsslist Représentation de Systèmes Linéaires pfss >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Mon Jan 03 14:33:06 CET 2022