sscprotect
Syntax
Description
sscprotect(
generates a Simscape™ protected file, named
filename
)
, from the Simscape source file named filename
.sscp
,
and places the protected file in your current working folder. filename
.sscfilename
can include absolute path to the file, or relative path if the file is in a subfolder of the
current working folder. If this path includes namespace folders, the namespace structure
will be recreated under the current working folder (unless it already exists) and the
protected file placed in that namespace. The extension .ssc
in
filename
is optional.
The sscprotect
command creates content-obscured files (Simscape protected files) from Simscape source files, to enable model sharing without disclosing the component or
domain source. While Simscape source files have the extension .ssc
, Simscape protected files have the extension .sscp
.
sscprotect(
generates a
Simscape protected file, named
filename
-inplace)
, from the Simscape source file named filename
.sscp
,
and places the protected file in the same folder as the source file.filename
.ssc
sscprotect(
generates Simscape protected files from all the Simscape source files in the folder named
dirname
)
, and places the protected files
under your current working folder. If the path to dirname
dirname
includes namespace folders, the namespace structure will be recreated under the current
working folder (unless it already exists) and the protected files placed in the namespace,
similar to when protecting a single file.
sscprotect(
generates
Simscape protected files from all the Simscape source files in the folder named
dirname
-inplace)
, and places the protected files in
the same folder as the source files. dirname
Note
Existing Simscape protected files are overwritten without warning.
Simscape protected files have higher precedence than the source files when you build a
library. If the protected and the source files are in the same folder, and protected files
are out of date, sscbuild
will use the protected files to build the
library, but you will get a warning.
Examples
Input Arguments
Version History
Introduced in R2024b