Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

gcs - Get pathname of current system

Syntax

gcs

Description

gcs returns the full pathname of the current system.

The current system is one of these:

The current system is always the current model or a subsystem of the current model. Use bdroot to get the current model.

Examples

This example returns the path of the system that contains the most recently selected block.

gcs
ans =
   clutch/Locked

See Also

bdroot, 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