Main Content

SymbolSpec

Query and configure Python Code block data symbols

Since R2025a

Description

Use the SymbolSpec object to query and configure Python Code block symbol definitions and their properties.

Creation

Use the get_param function to get the Python Code block symbol configuration object for the specified Python Code block. Specify the first argument PyCodeBlk as a character vector that defines the path to the block or as a block handle.

myCFunctionObj = get_param(PyCodeBlk,'SymbolSpec')

Properties

expand all

The symbols defined in the Python Code block, specified as a Symbol object, or an array of Symbol objects.

Symbol objects define the properties of each symbol in the Python Code block.

Object Functions

addSymbolAdd a symbol object definition to a Python Code block
getSymbolGet a symbol object definition of a Python Code block
deleteSymbolDelete a symbol object definition from a Python Code block

Version History

Introduced in R2025a