Simulink Reference | ![]() ![]() |
Get the pathname of the current block.
Syntax
Description
gcb
returns the full block path name of the current block in the current system.
gcb('sys')
returns the full block path name of the current block in the specified system.
The current block is one of these:
MaskInitialization
string, the current block is the block whose mask is being evaluated.
Examples
This command returns the path of the most recently selected block.
This command gets the value of the Gain parameter of the current block.
See Also
![]() | find_system | gcbh | ![]() |