Re: Weird problem with fmincon on 2008b
- From: "Steven Lord" <slord@xxxxxxxxxxxxx>
- Date: Sun, 21 Jun 2009 22:46:50 -0400
"Steve Thomas" <tdasddt@xxxxxxxxxx> wrote in message
news:h1mlum$ovf$1@xxxxxxxxxxxxxxxxxxxxx
Hi John, Steven
Thanks for your responses. I agree my explanation is rather poor so I will
restate. I am simulating a data generating process hence the use of randn.
I know the parameters a priori and wish to assess the accuracy of
estimates of the parameters in the presence of certain pertubations.
Everything goes well until I open up a second instance of Matlab 2008b (in
Win XP). In the second instance, I keep getting a matrix is singular error
for the same problem (in the meantime, the first instance of Matlab keeps
runnning smoothly)!
Could it be that that two instances of Matlab are concurrently requesting
some resource/process, with the first instance of Matlab having priority
over the second? Is this a known problem?
Possible, but doubtful. I think it's FAR more likely an issue with the
pseudorandom number generator state.
Start one session of MATLAB and perform some operations involving RAND,
RANDN, and/or RANDI. Then generate a 4-by-4 matrix using RAND.
Now start a new session of MATLAB and generate a 4-by-4 matrix using RAND.
Compare the two matrices; they will likely not be the same, as the
pseudorandom number generator in the two sessions are not in the same state.
One of the matrices may be singular and the other nonsingular.
Read at least the first page of the chapter in Cleve's textbook that deals
with random number generator:
http://www.mathworks.com/moler/random.pdf
--
Steve Lord
slord@xxxxxxxxxxxxx
.
- References:
- Weird problem with fmincon on 2008b
- From: Steve Thomas
- Re: Weird problem with fmincon on 2008b
- From: Steven Lord
- Re: Weird problem with fmincon on 2008b
- From: Steve Thomas
- Weird problem with fmincon on 2008b
- Prev by Date: convolution with matrices as elements
- Next by Date: Sell Hotest Air Zenyth Shoes,PAYPAL ACCEPT(www.kootrade.com)
- Previous by thread: Re: Weird problem with fmincon on 2008b
- Next by thread: Matlab ignoring if statements
- Index(es):
Relevant Pages
|