| Using Simulink | Search  Help Desk |
| gcb | Examples See Also |
Get the pathname of the current block.
Syntax
gcb
gcb('sys')
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.gcb ans = clutch/Locked/InertiaThis command gets the value of the
Gain parameter of the current block.
get_param(gcb,'Gain') ans = 1/(Iv+Ie)
See Also
gcbh, gcs