Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <kj0jon$9ec$1@newscl01ah.mathworks.com> <kj2v6h$om4$1@newscl01ah.mathworks.com> <kj4ot1$eaj$1@newscl01ah.mathworks.com> <kj4t1a$rpn$1@newscl01ah.mathworks.com> <kj72ds$1dh$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1364676620 15378 172.30.248.35 (30 Mar 2013 20:50:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 30 Mar 2013 20:50:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:792329

"Nicholas" wrote in message <kj72ds$1dh$1@newscl01ah.mathworks.com>...
[snip]
> 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

More: http://UndocumentedMatlab.com/blog/undocumented-profiler-options-part-4/

Yair Altman 
http://UndocumentedMatlab.com