Simulink Reference |
Get the pathname of the current system.
Syntax
Description
gcs
returns the full pathname of the current system.
The current system is one of these:
MaskInitialization
string, 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.
See Also
gcbh | get_param |