From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: randn repeating itself
Date: Sat, 30 Mar 2013 20:50:20 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 16
Message-ID: <kj7j6c$f0i$>
References: <kj0jon$9ec$> <kj2v6h$om4$> <kj4ot1$eaj$> <kj4t1a$rpn$> <kj72ds$1dh$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1364676620 15378 (30 Mar 2013 20:50:20 GMT)
NNTP-Posting-Date: Sat, 30 Mar 2013 20:50:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: comp.soft-sys.matlab:792329

"Nicholas" wrote in message <kj72ds$1dh$>...
> Does anyone know if it's possible to search through all of the called functions to see if and where a rand('state',0)-like command has been executed? I tried using Profiler, but rand didn't turn up in the function list of the Profile summary.

Matlab's Profiler doesn't normally show built-in functions like rand(), unless you explicitly ask for it:

profile -detail builtin on
profile off; profile report


Yair Altman