sscnewfile
Create new Simscape file populated by required and commonly used keywords
Syntax
Description
sscnewfile(
creates a component with the
specified name
)name
using the default component template. The function
automatically saves the new Simscape™ file, name
, in the current folder.
sscnewfile(
creates a component with the specified name
,template_keyword
)name
using the domain-specific
template specified by template_keyword
. For a list of available
keywords, use the -list
option. The function automatically saves the new
Simscape file, name
, in the current folder.
sscnewfile(
creates a component, domain, or function file with the specified name
,template_file
)name
using a file of the same type, template_file
, as the template. The
template file name must include the file path. Various template files are available in the
simscape.template
namespace; however, you can use any Simscape file as a template. The function copies the contents of the template file into
the new file, replaces the name of the component, domain, or function with
name
, and saves the new file in the current folder.
sscnewfile -list
returns a list of available template keywords and
lists all the files available in the simscape.template
namespace.
Examples
Input Arguments
Version History
Introduced in R2019b