[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding out which functions an M file requires to run
From: |
Sebastian Schöps |
Subject: |
Re: Finding out which functions an M file requires to run |
Date: |
Mon, 19 Oct 2015 08:38:03 -0700 (PDT) |
Octave does not support "matlab.codetools.requiredFilesAndProducts" or
"depfun" [1,2]. However, you can use the profiler, e.g.:
profile on
run_your_script;
profile off
T = profile ("info");
for i=1:length(T.FunctionTable),
path=which(T.FunctionTable(i).FunctionName);
% print only files in home
if findstr(path,"/home")
path
end
end
[1]
http://de.mathworks.com/help/matlab/matlab_prog/identify-dependencies.html
[2] http://de.mathworks.com/help/matlab/ref/depfun.html
--
View this message in context:
http://octave.1599824.n4.nabble.com/Finding-out-which-functions-an-M-file-requires-to-run-tp4672988p4672994.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Finding out which functions an M file requires to run, RT, 2015/10/19
- Re: Finding out which functions an M file requires to run, Carlo De Falco, 2015/10/19
- Re: Finding out which functions an M file requires to run,
Sebastian Schöps <=
- Re: Finding out which functions an M file requires to run, Oliver Heimlich, 2015/10/19
- Re: Finding out which functions an M file requires to run, Sebastian Schöps, 2015/10/19
- Re: Finding out which functions an M file requires to run, Olaf Till, 2015/10/19
- Re: Finding out which functions an M file requires to run, Markus Bergholz, 2015/10/19
- Re: Finding out which functions an M file requires to run, Olaf Till, 2015/10/19
- Re: Finding out which functions an M file requires to run, Julien Bect, 2015/10/19