comparison src/ltpda_ssmsim/validate_mex.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 [yx,xx,lxx,y,x,lx] = validate_mex(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 xx = [];
13 [yx,lxx] = ltpda_ssmsim(lastX, A.', Coutputs.', Cstates, Baos.', Daos.', input);
14 [y,x,lx] = mat_ssmsim(lastX, A, Coutputs, Cstates, Baos, Daos, input);
15
16
17
18 end