Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

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
  


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