| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
gcs
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 the 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.
This example returns the path of the system that contains the most recently selected block.
gcs ans = clutch/Locked
![]() | gcbh | get_param | ![]() |

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 |