필터 지우기
필터 지우기

depfun to find package functions

조회 수: 3 (최근 30일)
Christopher Pedersen
Christopher Pedersen 2012년 8월 15일
I'm trying to write a wrapper for depfun, that will also find dependency function inside packages.
My idea is to look for all subfolders of the path that start with + (i.e. package folders), find all the functions in these. That will give me a list of strings to look for (e.g. +myfol/myfun.m gives the string myfol.myfun). I can then see which of these strings appear in the code.
the problem with this is false positives: if there is e.g. a strucutre that happens to use the same syntax (myfol.myfun = somevalue), that will be treated as a call to the package function, when it is not.
is there a neater way of doing this ?

답변 (1개)

Image Analyst
Image Analyst 2012년 8월 15일
First look at these File Exchange submissions to see if they do what you want.
This one seems especially comprehensive:
Here's another one to look at:

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by