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 a specified repository is already on the repository list, then the function moves the repository to the end of the list.
mpmAddRepository(
adds the specified
repoObj
)matlab.mpm.Repository
object to the list of known repositories.
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.
If a specified repository is already on the repository list, then the function moves the repository to the specified position.
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
Authoring
property is0
orfalse
before adding the folder containing that package as a repository.
Version History
Introduced in R2024b