Hello,
I'm having trouble using 'depfun' to identify dependencies in my code. When I run the function, it reports a dependency on a file in my MATLAB user directory.
The file I'm running depfun on is in a package '+biopack\resolveoverlaps.m' and has no actual dependencies but the search for dependencies is finding 'ResolveOverlaps.m' in my MATLAB folder.
Just to make things more peculiar, the Dependency Report for the file does not find this file from my user space.
I need a reliable, programmatic way of confirming that the code I'm executing is coming from a specific set of folders.
Does anyone know why depfun is reporting false dependencies? Is there a way of configuring it that follows the expected behaviour as shown in the 'dependency report'? Does anyone have any ideas for a way of managing the scenario to tell the difference between a file that has a dependency on a file of the same name in your user folder and this false dependency?
Any advice would be greatly appreciated.
- Gabe

댓글 수: 1

Gabriel
Gabriel 2014년 3월 12일
On the plus side, the problem seems to be fixed in R2014a by using matlab.codetools.requiredFilesAndProducts instead.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kelly Kearney
Kelly Kearney 2014년 3월 12일

0 개 추천

I stopped using depfun years ago... I find it often makes these sort of mistakes, where it latches on to a shadowed function or subfunction rather than the proper dependency, and when you have a lot of toolboxes installed this can lead to ridiculous results (returning hundreds of incorrect dependencies for a single file).
The newer version may be a little better, but my solution was to switch to fdep to analyze dependencies. Much more reliable, in my opinion, and gives more detailed output as well.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2014년 3월 12일

답변:

2014년 3월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by