Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

프로그래밍 방식의 모델 편집

모델 만들기, 모델의 블록 추가 및 연결, 파라미터 및 속성 설정, 프로그래밍 방식으로 기타 모델링 기본 작업 수행

Simulink®에서 프로그래밍 방식의 모델 관리에 대한 기본 사항을 알아봅니다.

함수

모두 확장

simulinkOpen Simulink Start Page
start_simulinkStart Simulink without opening any windows
slLibraryBrowserOpen Simulink Library Browser
open_systemOpen model, library, subsystem, or block dialog box
load_systemLoad Simulink model into memory
save_systemSave Simulink model
close_systemClose Simulink system window or block dialog box
bdcloseClose any or all Simulink system windows unconditionally
add_blockAdd block to model
add_lineAdd line to Simulink model
delete_blockDelete blocks from Simulink system
delete_lineDelete line from Simulink model
add_paramAdd parameter to Simulink system
delete_paramDelete system parameter added via add_param command
Simulink.BlockDiagram.deleteContentsDelete graphical contents of system
Simulink.SubSystem.deleteContentsDelete contents of subsystem
Simulink.history.clearClear the Simulink start page and editor history
new_systemCreate Simulink model or library in memory
Simulink.createFromTemplateCreate model or project from template
Simulink.BlockDiagram.createSubsystemCreate subsystem containing specified set of blocks
Simulink.AnnotationCreate and specify properties of text, image, and area annotations
docblockGet or set editor invoked by Simulink DocBlock
gcsGet path name of current system
getfullnameGet path that identifies block or line
gcbGet path name of current block
gcbhGet handle of current block
gcbpGet Simulink.BlockPath object for current block
getSimulinkBlockHandleGet block handle from block path
get_paramGet parameter names and values
set_paramSet system and block parameter values
Simulink.defaultModelTemplateSet or get default model template
getCallbackAnnotationGet annotation executing callback
edittime.getDisplayIssuesCheck whether model design warnings and errors is on
edittime.setDisplayIssuesDetect model design errors and warnings
hilite_systemHighlight block, signal line, port, or annotation
find_systemFind systems, blocks, lines, ports, and annotations
Simulink.FindOptionsSpecify options for finding blocks in models and subsystems
Simulink.findTemplatesFind model or project templates with specified properties
Simulink.allBlockDiagramsFind loaded Simulink models and libraries
Simulink.findBlocksFind blocks in Simulink models
Simulink.findBlocksOfTypeFind specified type of block in Simulink models
replace_blockReplace blocks in Simulink model
isSimulinkStartedCheck whether Simulink is started
bdrootTop-level model of current system
bdIsLoadedDetermine whether model, subsystem, or library is loaded
bdIsLibraryDetermine whether block diagram is a library
bdIsDirtyDetermine whether model, subsystem, or library has unsaved changes
slIsFileChangedOnDiskDetermine whether model has changed since it was loaded
Simulink.SubSystem.copyContentsToBlockDiagramCopy graphical contents from subsystem to empty system
Simulink.exportToTemplateCreate template from model or project
Simulink.exportToVersionExport model, library, or project for use in previous version of Simulink
Simulink.MDLInfoExtract SLX, SLXP, or MDL file information without loading file
Simulink.MDLInfo.getDescriptionExtract SLX, SLXP, or MDL file description without loading file
Simulink.MDLInfo.getMetadataExtract SLX, SLXP, or MDL file metadata without loading file
Simulink.BlockDiagram.expandSubsystemReplace subsystem with subsystem contents
Simulink.BlockDiagram.arrangeSystemImprove layout of block diagram
Simulink.BlockDiagram.routeLineRoute existing lines of model
slCharacterEncodingSpecify encoding to use in code generated from Simulink models
frameeditEdit print frames for Simulink and Stateflow block diagrams
orientPaper orientation for printing or saving
printFigure를 출력하거나 특정 파일 형식으로 저장

도움말 항목

Simulink API

Programmatic Modeling Basics

Create models, add and connect blocks in models, set parameters and properties, and perform other modeling basics programmatically.

Run Simulations Programmatically

Programmatically simulate a model using the sim function.