root = bdroot(obj)
| Parameter | Description |
|---|---|
| obj | a model name or a block path ('model' or 'model/BlockName'). |
| Parameter | Description |
|---|---|
| root | the top-level model name (the part before the first '/'). |
bdroot returns the top-level model of a block path.
bdroot('model') is 'model'; bdroot('model/Sub/Blk') is 'model'. The root model must be loaded.
new_system('demo');
add_block('nflow/math/gain', 'demo/Gain');
root = bdroot('demo/Gain')
bdclose('demo');
| Version | Description |
|---|---|
| 1.0.0 | initial version |