Modeling Basics

Build block diagram models using blocks and signal lines

Functions

simulink Open Simulink block library
new_system Create empty Simulink system
open_system Open Simulink model, library, subsystem, or block dialog box
load_system Invisibly load Simulink model
add_block Add block to model
add_line Add line to Simulink system
replace_block Replace blocks in Simulink model
delete_block Delete block from Simulink system
delete_line Delete line from Simulink system
bdroot Return name of top-level Simulink system
find_system Find systems, blocks, lines, ports, and annotations
gcs Get pathname of current system
getfullname Get pathname of block or line
gcb Get pathname of current block
gcbh Get handle of current block
set_param Set system and block parameter values
get_param Get parameter names and values
add_param Add parameter to Simulink system
delete_param Delete system parameter added via add_param command
Simulink.BlockDiagram.createSubSystem Create subsystem containing specified set of blocks
Simulink.BlockDiagram.deleteContents Delete contents of block diagram
Simulink.SubSystem.copyContentsToBlockDiagram Copy contents of subsystem to empty block diagram
Simulink.SubSystem.deleteContents Delete contents of subsystem
save_system Save Simulink system
close_system Close Simulink system window or block dialog box
bdclose Close any or all Simulink system windows unconditionally
bdIsLoaded Whether block diagram is in memory
slCharacterEncoding Change MATLAB character set encoding
slIsFileChangedOnDisk Determine whether model has changed since it was loaded
Was this topic helpful?