addDependency(pkg,dep)
adds the packages in dep as dependencies to the package
pkg and updates the Dependencies property of the
package object. The package pkg must be in editable mode.
Package dependencies to add, specified as a string array of package specifiers, a
matlab.mpm.PackageSpecifier array, a matlab.mpm.Package array, or a matlab.mpm.Dependency array. If dep is a string array,
then each element must contain a package specifier in the format
"Name", "Name@VersionRange", or
"Name@VersionRange@ID". If you specify a package specifier, then
addDependency finds the corresponding package among already
installed packages. MATLAB throws an error if the package corresponding to the package
specifier is not installed.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.