Modeling Fundamentals

Build block diagram models using blocks and signal lines

Learn the basics you need to build models and be productive in the Simulink® editing environment.

Build a Simple Model covers the complete modeling process, from starting the software to building the block diagram to simulating and viewing results. Master the tips, tricks, and shortcuts that speed up model building.

Parts of a Model introduces concepts and vocabulary that serve as a foundation for learning about and using Simulink beyond the basics.


simulink Open Simulink Library Browser
start_simulink Start Simulink without opening any windows
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
getSimulinkBlockHandle Get block handle from block path
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
bdIsLibrary Whether block diagram is a library
slCharacterEncoding Change MATLAB character set encoding
slIsFileChangedOnDisk Determine whether model has changed since it was loaded
Was this topic helpful?