Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

depdir

List dependent folders for function or P-file

    Note:   depdir has been removed. Use matlab.codetools.requiredFilesAndProducts instead. However, matlab.codetools.requiredFilesAndProducts returns the full path of a required file, including the file name.

Syntax

list = depdir('file_name')
[list, prob_files, prob_sym, prob_text] = depdir('file_name')
[...] = depdir('file_name1', 'file_name2',...)

Description

The depdir function lists the folders of all the functions that a specified function or P-file needs to operate. This function is useful for finding all the folders that need to be included with a run-time application and for determining the run-time path.

list = depdir('file_name') creates a cell array of character vectors containing the folders of all the function and P-files that file_name.m or file_name.p uses. This includes the second-level files that are called directly by file_name, as well as the third-level files that are called by the second-level files, and so on.

[list, prob_files, prob_sym, prob_text] = depdir('file_name') creates three additional cell arrays containing information about any problems with the depdir search. prob_files contains filenames that depdir was unable to parse. prob_sym contains symbols that depdir was unable to find. prob_text contains callback text that depdir was unable to parse.

[...] = depdir('file_name1', 'file_name2',...) performs the same operation for multiple files. The dependent folders of all files are listed together in the output cell arrays.

Examples

list = depdir('mesh')

Introduced before R2006a

Was this topic helpful?