bdroot - Return name of top-level Simulink® system

Syntax

bdroot
bdroot('obj')

Description

bdroot with no arguments returns the top-level system name.

bdroot('obj'), where 'obj' is a system or block pathname, returns the name of the top-level system containing the specified object name.

Examples

This command returns the name of the top-level system that contains the current block.

bdroot(gcb)

See Also

find_system, gcb
  


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