Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

meta.package.getAllPackages

Get all top-level packages

Syntax

P = meta.package.getAllPackages

Description

P = meta.package.getAllPackages is a static method that returns a cell array of meta.package objects representing all the top-level packages that are visible on the MATLAB® path or defined as top-level built-in packages. You can access subpackages using the Packages property of each meta.package object.

Note that the time required to find all the packages on the path might be excessively long in some cases. You should therefore avoid using this method in any code where execution time is a consideration. getAllPackages is generally intended for interactive use only.

Was this topic helpful?