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

  


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