Products & Services Industries Academia Support User Community Company

Learn more about Simulink   

Function Reference


Model ConstructionModel construction functions
SimulationSimulation functions
Linearization and TrimmingLinearization and trimming functions
Data TypeData type functions

Model Construction

add_block Add block to model
add_lineAdd line to Simulink system
add_paramAdd parameter to Simulink system
addtermsAdd terminators to unconnected ports in model
attachConfigSetAssociate configuration set or configuration reference with model
attachConfigSetCopyCopy configuration set or configuration reference and associate it with model
bdcloseClose any or all Simulink system windows unconditionally
bdIsLoadedWhether block diagram is in memory
bdrootReturn name of top-level Simulink system
close_systemClose Simulink system window or block dialog box
closeDialogClose configuration parameters dialog
delete_blockDelete block from Simulink system
delete_lineDelete line from Simulink system
delete_paramDelete system parameter added via add_param command
detachConfigSetDissociate configuration set or configuration reference from model
disableimplicitsignalresolutionConvert model to use only explicit signal resolution
docblockGet or set editor invoked by Simulink DocBlock
find_mdlrefsFind Model blocks and referenced models at all levels or at top level only
find_systemFind systems, blocks, lines, ports, and annotations
gcbGet pathname of current block
gcbhGet handle of current block
gcsGet pathname of current system
get_paramGet system and block parameter values
getActiveConfigSetGet model's active configuration set or configuration reference
getCallbackAnnotationGet information about annotation
getConfigSetGet one of model's configuration sets or configuration references
getConfigSetsGet names of all of model's configuration sets or configuration references
getfullnameGet pathname of block or line
hilite_systemHighlight a Simulink object
intersectReturns the intersection of two vectors of Simulink.WorkspaceVar objects.
legacy_codeUse Legacy Code Tool
libinfoGet information about library blocks referenced by model
load_systemInvisibly load Simulink model
modeladvisorOpen Model Advisor
new_systemCreate empty Simulink system
open_systemOpen Simulink system window or block dialog box
openDialogOpen configuration parameters dialog
replace_blockReplace blocks in Simulink model
save_systemSave Simulink system
set_paramSet Simulink system and block parameter values
setActiveConfigSetSpecify model's active configuration set or configuration reference
setdiffReturns difference between two vectors of Simulink.WorkspaceVar objects.
signalbuilderCreate and access Signal Builder blocks
simulinkOpen Simulink block library
Simulink.BlockDiagram.addBusToVectorAdd Bus to Vector blocks to convert virtual bus signals into vector signals
Simulink.BlockDiagram.copyContentsToSubSystemCopy contents of block diagram to empty subsystem
Simulink.BlockDiagram.createSubSystemCreate subsystem containing specified set of blocks
Simulink.BlockDiagram.deleteContentsDelete contents of block diagram
Simulink.Bus.cellToObjectConvert cell array containing bus information to bus objects
Simulink.Bus.createMATLABStruct Create MATLAB structure with same shape and attributes as bus signal
Simulink.Bus.createObjectCreate bus objects for blocks
Simulink.Bus.objectToCellConvert bus objects to cell array containing bus information
Simulink.Bus.saveSave bus objects in M-file
Simulink.findVars Returns information about variables required or used by models and blocks
Simulink.ModelReference.protectObscure referenced model contents to hide intellectual property
Simulink.saveVarsSave workspace variables and their values in human-readable MATLAB code format
Simulink.SubSystem.convertToModelReferenceConvert atomic subsystem or function call subsystem to model reference
Simulink.SubSystem.copyContentsToBlockDiagramCopy contents of subsystem to empty block diagram
Simulink.SubSystem.deleteContentsDelete contents of subsystem
slCharacterEncodingChange MATLAB character set encoding
sldiscmdlDiscretize model that contains continuous blocks
slIsFileChangedOnDiskDetermine whether model has changed since it was loaded
slmdldiscuiOpen Model Discretizer GUI
slreplace_muxReplace Mux blocks used to create buses with Bus Creator blocks
slupdateReplace blocks from previous releases with latest versions
view_mdlrefsDisplay graph of model reference dependencies

Simulation

add_exec_event_listenerRegister listener for block method execution event
modelExecute particular phase of simulation of model
simSimulate dynamic system
simplotPlot simulation data in figure window
Simulink.Block.getSampleTimesReturn sample time information for a block
Simulink.BlockDiagram.getChecksumReturn checksum of model
Simulink.BlockDiagram.getInitialStateReturn initial state structure of block diagram
Simulink.BlockDiagram.getSampleTimesReturn all sample times associated with model
getBlockSimState Access SimState of individual block
setBlockSimState Set SimState of individual block
find Access and display values of simulation results
get Access and display values of simulation results
who Access and display output variable names of simulation
Simulink.SubSystem.getChecksumReturn checksum of subsystem
slbuildBuild standalone and model reference targets
sldebugStart simulation in debug mode
sldiagnosticsDisplay diagnostic information about Simulink system
unpackExtract signal logging objects from signal logs and write them into MATLAB workspace
whoList names of top-level data logging objects in Simulink data log
whosList names and types of top-level data logging objects in Simulink data log

Linearization and Trimming

linmod, dlinmod, linmod2, linmodv5Extract continuous- or discrete-time linear state-space model of system around operating point
trimFind trim point of dynamic system

Data Type

enumerationDisplay or obtain enumerated type constituent values and names
fixdtCreate Simulink.NumericType object describing fixed-point or floating-point data type
fixpt_evenspace_cleanupModify breakpoints of lookup table to have even spacing
fixpt_interp1Implement 1-D lookup table
fixpt_look1_func_approxOptimize fixed-point approximation of nonlinear function by interpolating lookup table data points
fixpt_look1_func_plotPlot fixed-point approximation function for lookup table
fixpt_set_allSet property for each fixed-point block in subsystem
fixptbestexpExponent that gives best precision for fixed-point representation of value
fixptbestprecDetermine maximum precision available for fixed-point representation of value
floatCreate MATLAB structure describing floating-point data type
fxptdlgInvoke Fixed-Point Tool
num2fixptConvert number to nearest value representable by specified fixed-point data type
sfixCreate MATLAB structure describing signed generalized fixed-point data type
sfracCreate MATLAB structure describing signed fractional data type
sintCreate MATLAB structure describing signed integer data type
tunablevars2parameterobjectsCreate Simulink parameter objects from tunable parameters
ufixCreate MATLAB structure describing unsigned generalized fixed-point data type
ufracCreate MATLAB structure describing unsigned fractional data type
uintCreate MATLAB structure describing unsigned integer data type
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS