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.
dep — Package dependencies to add string array of package specifiers | matlab.mpm.PackageSpecifier array | matlab.mpm.Package array | matlab.mpm.Dependency array
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 you specify a package specifier, then
addDependency finds the corresponding package among already
installed packages.