Mercurial > hg > ltpda
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@ao/nginit.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,18 @@ +% NGINIT is called by the function fromPzmodel +% it takes the matrix Tinit (calculated by NGSETUP) as input +% and returns the initial state vector y +% +% A Monsky 24-07-07 +% +% $Id: nginit.m,v 1.3 2008/10/20 08:38:29 anneke Exp $ + +function y = nginit(Tinit) + + n = length(Tinit); + + % writing the generator + r = randn(n,1); + y = Tinit * r; + +end +