Quantcast
Viewing all articles
Browse latest Browse all 55

Re: Find function called in matlab scripts

On 04/11/2017 11:36 AM, nuvolet wrote:
> Hi all,
>
> I usually create my own functions, which I use in multiple scripts.
> I was wondering, after I saw that I have hundreds of scripts, how from
> the matlab editor, I could find all the scripts, which use any of my
> functions.
> For instance:
> If I have a function called 2dhist_jet. How I could know what scripts
> call this function.

There are some tools, see the link in the documentation under
"Programming Utilites/Identify Program Dependencies". They're top-down
dependencies, not bottom up as you're asking.

The crude way to find what you're looking for is with *grep* utility
where you simply search for the appearance of the function name in m-files.

grep -S 2dhist_jet *.m

would return a list of all m-files containing the specific string in the
working directory and below...

--

Viewing all articles
Browse latest Browse all 55

Trending Articles