ssc_build
(To be removed) Build custom library from collection of Simscape files
ssc_build
will be removed in a future release. Use sscbuild
instead. (since R2024b) Syntax and arguments of the two functions are identical.
Description
ssc_build(
generates a custom
Simscape™ library file from the specified namespace, namespace
)namespace
.
Call ssc_build
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 ssc_build
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
_libssc_build
uses the
protected files to build the library, but issues a warning.
ssc_build(
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.
ssc_build
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:
ssc_build MyNamespace % command form ssc_build('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:
ssc_build MyNamespace -output C:\Work\MyLibrary % command form ssc_build('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.
ssc_build
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 ssc_build
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 R2008bSee Also
sscbuild
| addpath
| genpath
| fullfile
| sl_postprocess