필터 지우기
필터 지우기

Where has depfun gone? or How to make a dependency graph?

조회 수: 66 (최근 30일)
Christian Tieber
Christian Tieber 2020년 7월 21일
답변: Bruno Luong 2020년 8월 3일
I would like to use plot_graph from plot_depfun: https://www.mathworks.com/matlabcentral/fileexchange/46080-plot_depfun
These functions use the function depfun, wich does not seem to exist in newer matlab versions.
I am looking for an easy way to make a connection map (node graph) which shows the dependencys between functions.
Further more the dependency report does not seem to work when .mlapp files come in play.
Thanks!
  댓글 수: 1
Christopher Pedersen
Christopher Pedersen 2020년 8월 3일
Hi Christian - From version 8.3 onwards, you can use this command instead:
deps = matlab.codetools.requiredFilesAndProducts(name);
for example
deps = matlab.codetools.requiredFilesAndProducts('myfunction.m');
The '-toponly' speeds this up a bit by only returning the direct dependecies of 'myfunction.m', rather than the dependecies-of-dependencies.
Hope that helps,
Chris

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

답변 (1개)

Bruno Luong
Bruno Luong 2020년 8월 3일

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by