view m-toolbox/classes/@ao/nginit.m @ 10:75007001cbfe
database-connection-manager
Check for binary only objects
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % 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
+ −