Function Reference


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

Model Construction

add_blockAdd block to Simulink system
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 in model. Find models that Model blocks reference
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
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 parameters
setActiveConfigSetSpecify model's active configuration set or configuration reference
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.deleteContentsDelete contents of block diagram
Simulink.Bus.cellToObjectConvert cell array containing bus information to bus objects
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.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 Simulink model containing 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
simgetGet settings of model's simulation parameters
simplotPlot simulation data in figure window
simsetSpecify simulation options for simulations run via sim command
Simulink.BlockDiagram.getChecksumReturn checksum of model
Simulink.BlockDiagram.getInitialStateReturn initial state structure of block diagram
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 a Simulink data log
whosList names and types of top-level data logging objects in a 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

fixdtCreate Simulink.NumericType object describing fixed-point or floating-point data type
fixpt_evenspace_cleanupModify lookup table input data to be evenly spaced
fixpt_interp1Implement 1-D lookup table
fixpt_look1_func_approxOptimize for fixed-point function, x values, or breakpoints that are generated for lookup table
fixpt_look1_func_plotPlot function with x values generated by fixpt_look1_func_approx function
fixpt_set_allSet property for every fixed-point block in subsystem
fixptbestexpDetermine exponent that gives best precision 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
  


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