Mercurial > hg > ltpda
comparison src/ltpda_ssmsim/do_a_run.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 [t,y,x] = do_a_run(Nruns, Nsamples, Nstates, Nstatesout, Ninputs, Noutputs) | |
2 | |
3 x = []; | |
4 | |
5 lastX = zeros(Nstates,1); | |
6 A = 0.1*rand(Nstates); | |
7 Coutputs = rand(Noutputs,Nstates); | |
8 Cstates = eye(Nstates); | |
9 Cstates = Cstates(1:Nstatesout,1:Nstates); | |
10 Baos = rand(Nstates,Ninputs); | |
11 Daos = rand(Noutputs, Ninputs); | |
12 input = randn(Ninputs, Nsamples); | |
13 | |
14 | |
15 tic | |
16 for rr=1:Nruns | |
17 [y,lx] = ltpda_ssmsim(lastX, A.', Coutputs.', Cstates.', Baos.', Daos.', input); | |
18 end | |
19 mxtime = toc; | |
20 t = mxtime/Nruns; | |
21 end |