ssc_reserved

List reserved words

Syntax

ssc_reserved
words = ssc_reserved

Description

ssc_reserved returns a list of reserved Simscape™ language words. Simscape language has certain words, in addition to its keywords, that you cannot use as model or member names. This list may change from release to release, as limitations are removed. Use the ssc_reserved command to see the current list of reserved words.

words = ssc_reserved returns a list of reserved words in words as a cell array of strings.

ssc_reserved does not list the Simscape language keywords.

Examples

List the currently reserved words:

ssc_reserved

ans = 

    'across_variable'
    'build'
    'description'
    'descriptor'
    'element'
    'input'
    'interface_input'
    'interface_node'
    'interface_output'
    'item_type'
    'local_variable'
    'name'
    'node'
    'output'
    'parameter'
    'setup'
    'signal'
    'source'
    'terminal'
    'through_variable'
    'variable'

You cannot use any of these words as model names (domain or component) or member names (parameter, variable, and so on). In addition to these reserved words, you cannot use any of the Simscape language keywords as model or member names.

Was this topic helpful?