SCB(BLOCK) redefines the current block returned by GCB to be BLOCK.
Example
test model with a Constant block and an Add block
gcb returns 'untitled/Constant'
scb('untitled/Add')
gcb returns 'untitled/Add'
Cite As
Per-Anders Ekstrom (2026). scb (https://uk.mathworks.com/matlabcentral/fileexchange/13833-scb), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Programmatic Model Editing in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Added example in help. |
