comparison m-toolbox/classes/@ao/nginit.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 % NGINIT is called by the function fromPzmodel
2 % it takes the matrix Tinit (calculated by NGSETUP) as input
3 % and returns the initial state vector y
4 %
5 % A Monsky 24-07-07
6 %
7 % $Id: nginit.m,v 1.3 2008/10/20 08:38:29 anneke Exp $
8
9 function y = nginit(Tinit)
10
11 n = length(Tinit);
12
13 % writing the generator
14 r = randn(n,1);
15 y = Tinit * r;
16
17 end
18