Products & Services Industries Academia Support User Community Company

Learn more about Simulink   

gcb - Get pathname of current block

Syntax

gcb
gcb('sys')

Description

gcb returns the full block pathname of the current block in the current system.

gcb('sys') returns the full block pathname of the current block in the specified system.

The current block is one of these:

Examples

This command returns the path of the most recently selected block.

gcb
ans =
   clutch/Locked/Inertia

This command gets the value of the Gain parameter of the current block.

get_param(gcb,'Gain')
ans =
   1/(Iv+Ie)

See Also

gcbh, gcs

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS