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.