mpmAddRepository
Syntax
Description
mpmAddRepository(
adds the specified location to the MATLAB® repository list and gives the repository the specified name.repoName,repoLocation)
The function adds repositories to the end of the MATLAB repository list by default. If the specified repository is already on the repository list, then the function does not reorder the repositories.
mpmAddRepository( moves the repository
identified the repository identified by the specified repoObj)matlab.mpm.Repository object to the end of the repository list.
mpmAddRepository(___,Position=
adds the repository to the repository list at the specified position. Specify
repoPos)repoPos as "begin" or "end" in
addition to any of the input argument combinations in previous syntaxes.
MATLAB searches each repository on the known repository list in order. If a repository has multiple packages that meet these conditions, then MATLAB selects the package with the latest semantic version. Once a package that meets the conditions has been found, other repositories on the list of known repositories are not searched.
returns a repo = mpmAddRepository(___)matlab.mpm.Repository object that represents the added repository.
Examples
Input Arguments
Tips
It is recommended to make sure a package's
Authoringproperty is0orfalsebefore adding the folder containing that package as a repository.
Version History
Introduced in R2024b