Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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:

  • During editing, the current system is the system or subsystem most recently clicked.

  • During simulation of a system that contains S-Function blocks, the current system is the system or subsystem containing the S-Function block that is currently being evaluated.

  • During callbacks, the current system is the system containing any block whose callback routine is being executed.

  • During evaluation of MaskInitialization, the current system is the system containing the block whose mask is being evaluated.

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

|

Introduced before R2006a

Was this topic helpful?