sscbuild
Description
sscbuild(
generates a custom
Simscape™ library file from the specified namespace, namespace
)namespace
.
Call sscbuild
from the namespace parent folder, that is, from the
folder containing the top-level namespace folder. For more information on namespace folder
structure, see Organizing Your Simscape Files.
When you call sscbuild
with one argument, the library file is named
and is located in the
namespace parent folder. The library contains all the sublibraries and blocks generated from
the Simscape files (either source or protected) located in the namespace and its
subfolders. Simscape protected files have higher precedence than the source files when you build a
library. If both the protected and the source files are present in the namespace and the
source files are newer than the protected files, namespace
_libsscbuild
uses the
protected files to build the library, but issues a warning.
sscbuild(
generates a custom Simscape library file from the specified namespace, namespace
,'-output',outputlibrary
)namespace
,
with outputlibrary
defining the library file name and location. This
syntax uses a name-value argument pair, where '-output'
is the name of
the optional argument and outputlibrary
is the argument value. The
function implements partial argument name matching, therefore specifying
'-o'
as the argument name also works.
sscbuild
is the command form of the
syntax. Command form requires fewer special characters. You do not need to type parentheses
or enclose the input in single or double quotes. Separate inputs with spaces instead of
commas. namespace
For example, to build a namespace named +MyNamespace
, these
statements are equivalent:
sscbuild MyNamespace % command form sscbuild('MyNamespace') % function form
You can also use command form with the name-value argument pair, described in the
previous syntax, as long as the path and name of the output library is a character vector.
For example, to build a namespace named +MyNamespace
and save the output
library as 'C:\Work\MyLibrary'
, these statements are
equivalent:
sscbuild MyNamespace -output C:\Work\MyLibrary % command form sscbuild('MyNamespace','-output','C:\Work\MyLibrary') % function form
Do not use command form when outputlibrary
uses variables, or
functions like fullfile
, to specify the output library name and
location. For more information on the command-function duality, see Choose Command Syntax or Function Syntax.
sscbuild
is a special syntax, with no arguments, that you can use
to call the function from inside the namespace folder structure. It builds a library from
the current namespace, with default library name and location. To specify a different name
or location for the output library, call sscbuild
from the namespace
parent folder using either the command or the function form of the syntax with the
name-value argument pair.
Examples
Input Arguments
Version History
Introduced in R2024b
See Also
addpath
| genpath
| fullfile
| sl_postprocess
| sscclean
| sscmirror
| sscprotect