Skip to Main Content Skip to Search
Product Documentation

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
dependencies.fileDependencyAnalysisFind model file dependencies
dependencies.toolboxDependencyAnalysisFind toolbox dependencies
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
getVariableGet value of variable from workspace
hasVariableDetermine if variable exists in workspace
hilite_systemHighlight Simulink object
intersectReturns 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.BlockDiagram.loadActiveConfigSetLoad, associate, and activate configuration set with model
Simulink.BlockDiagram.saveActiveConfigSetSave active configuration set of model
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 MATLAB file
Simulink.findVars Returns information about workspace variables used or not used by models and blocks.
Simulink.ModelReference.protectObscure referenced model contents to hide intellectual property
Simulink.saveVarsSave workspace variables and their values in MATLAB code format
Simulink.SoftwareTarget.concurrentExecution Create configuration for concurrent execution
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
simulinkproject Open the Simulink Project Tool
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
Simulink.ModelDataLogs.convertToDatasetConvert logging data from Simulink.ModelDataLogs format to Simulink.SimulationData.Dataset format
Simulink.sdi.addToRunAdd new simulation data to existing run
Simulink.sdi.clearClear all data from Simulation Data Inspector
Simulink.sdi.compareRunsCompare signal data between two simulation runs
Simulink.sdi.compareSignalsCompare data from two signals
Simulink.sdi.copyRunCreate copy of run including simulation output data
Simulink.sdi.createRunCreate run in Simulation Data Inspector
Simulink.sdi.deleteRunDelete run from Simulation Data Inspector
Simulink.sdi.getRunCountReturn number of runs in Simulation Data Inspector
Simulink.sdi.getRunIDByIndexReturn the run ID corresponding to run index
Simulink.sdi.getSignalReturn Simulink.sdi.Signal object for signal in Simulation Data Inspector
Simulink.sdi.getSourceReturn location for storing simulation data
Simulink.sdi.isValidRunIDDetermine if run ID is valid
Simulink.sdi.loadLoad saved Simulation Data Inspector session
Simulink.sdi.refreshRefresh Simulation Data Inspector
Simulink.sdi.reportGenerate report from Simulation Data Inspector tool
Simulink.sdi.saveSave current Simulation Data Inspector session
Simulink.sdi.setSourceSet location for storing simulation data
Simulink.sdi.viewOpen Simulation Data Inspector tool
getBlockSimState Access SimState of individual block
setBlockSimState Set SimState of individual block
Simulink.SimulationData.signalLoggingSelectorOpen Signal Logging Selector
Simulink.SimulationData.updateDatasetFormatLoggingConvert model and its referenced models to use Dataset format for signal logging
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 nonvirtual subsystem
slbuildBuild standalone and model reference targets
sldebugStart simulation in debug mode
sldiagnosticsDisplay diagnostic information about Simulink system
slprofreportRegenerate profiler report from data, ProfileData, saved from previous run
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

dlinmodExtract discrete-time linear state-space model around operating point
linmodExtract continuous-time linear state-space model around operating point
linmod2Extract continuous-time linear state-space model around operating point
linmodv5Extract continuous-time linear state-space model around operating point
trimFind trim point of dynamic system

Data Type

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
fxptdlgStart 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
Simulink.defineIntEnumTypeDefine enumerated 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-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS