Mercurial > hg > ltpda
comparison src/ltpda_ssmsim/mat_ssmsim.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function [y,x,lastX] = mat_ssmsim(lastX, A, Coutputs, Cstates, Baos, Daos, input) | |
2 | |
3 Nsamples = size(input,2); | |
4 y = zeros(size(Coutputs,1),Nsamples); | |
5 x = zeros(size(Cstates,1),Nsamples); | |
6 | |
7 for k = 1:Nsamples | |
8 y(:,k) = Coutputs*lastX + Daos*input(:,k); | |
9 x(:,k) = Cstates*lastX; | |
10 lastX = A*lastX + Baos*input(:,k); | |
11 end | |
12 | |
13 | |
14 end |