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