help-octave
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]