Main Content

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

설계 데이터 관리하기

모델 작업 공간, 기호, 데이터 객체 및 데이터 클래스를 사용하여 변수 값 할당

MATLAB® 변수를 사용하여 한 모델에서 여러 신호 및 블록 파라미터를 구성하고 관리할 수 있습니다. 모델이 변수를 사용하는 방법에 대한 자세한 내용은 Symbol Resolution 항목을 참조하십시오. 변수를 만들고 편집하고 관리하려면 Create, Edit, and Manage Workspace Variables 항목을 참조하십시오.

MATLAB 기본 작업 공간, 모델 작업 공간 또는 데이터 사전에 모델 변수를 저장할 수 있습니다. 모델의 변수를 저장할 위치를 결정하려면 Determine Where to Store Variables and Objects for Simulink Models 항목을 참조하십시오.

변수를 사용하여 데이터형 및 코드 생성 설정과 같은 신호 및 파라미터 특성을 제어하기 위해, 작업 공간 또는 데이터 사전에 데이터 객체를 저장할 수 있습니다. Data Objects 항목을 참조하십시오.

함수

모두 확장

Simulink.findVarsAnalyze relationship between variables and blocks in models
matlab.io.saveVariablesToScript작업 공간 변수를 MATLAB 스크립트에 저장
Simulink.data.evalinGlobalEvaluate MATLAB expression in context of Simulink model
Simulink.data.assigninGlobalModify variable values in context of Simulink model
Simulink.data.existsInGlobalCheck existence of variable in context of Simulink model
Simulink.data.dictionary.createCreate new data dictionary and create Simulink.data.Dictionary object
Simulink.data.dictionary.openOpen data dictionary for editing
Simulink.data.dictionary.getOpenDictionaryPathsReturn file names and paths of open data dictionaries
Simulink.LibraryDictionary.clearClear library dictionary dependency analysis
Simulink.LibraryDictionary.refreshUpdate library dictionary dependencies

클래스

Simulink.ModelWorkspaceInteract with the model workspace of a model programmatically
Simulink.WorkspaceVarStore information about workspace variables and blocks that use them
Simulink.VariableUsageStore information about the relationship between variables and blocks in models
Simulink.CoderInfoSpecify information needed to generate code for signal, state, or parameter data
Simulink.data.DictionaryConfigure data dictionary
Simulink.data.dictionary.SectionConfigure data dictionary section
Simulink.data.dictionary.EntryConfigure data dictionary entry
Simulink.data.dictionary.EnumTypeDefinitionStore enumerated type definition in data dictionary

도움말 항목

모델 작업 공간에 데이터 저장

모델 작업 공간

모델이 사용하는 변수와 객체를 해당 모델만 액세스할 수 있는 작업 공간에 배치합니다.

Change Model Workspace Data

When you store data in a model workspace, you choose a data source, such as the model file or an external MAT-file. To modify the variables at the source, you use a different procedure depending on the type of source that you selected.

Specify Source for Data in Model Workspace

Store variables and objects that a model uses in the model file or in a separate file. Optionally, store the variables and objects as code that you can modify.

사전에 데이터 저장

What Is a Data Dictionary?

Use a data dictionary to store external data for a model.

Import and Export Dictionary Data

Migrate data between a data dictionary and a MAT-file or MATLAB script file.

View and Revert Changes to Dictionary Data

Use a data dictionary to inspect and manage changes to model data.

Migrate Models to Use Simulink Data Dictionary

Store variables and objects in data dictionaries.

Partition Dictionary Data Using Referenced Dictionaries

Create referenced dictionaries to store subsets of the data that a model or model hierarchy uses.

Partition Data for Model Reference Hierarchy Using Data Dictionaries

Compose a dictionary hierarchy based on a model reference hierarchy.

Link Data Dictionary to Custom Libraries

Share data objects with Simulink block library users by using a linked data dictionary.

Enumerations in Data Dictionary

Store enumerated type definitions and enumerated data in a data dictionary.

Store Data in Dictionary Programmatically

Use scripts and the command prompt to create and interact with data dictionaries.

객체 및 변수에 데이터 저장

Determine Where to Store Variables and Objects for Simulink Models

Model data are objects and variables that you create in workspaces such as the base workspace or a data dictionary. Choose a technique to permanently store that data.

Create, Edit, and Manage Workspace Variables

Workspace variables enable you to share information, such as parameter values and data types, between blocks and models. Use different tools and techniques to create and manipulate workspace variables.

Edit and Manage Workspace Variables by Using Model Explorer

Find out which workspace variables are used by a model or block, find blocks that use a variable, find unused variables, and rename a variable everywhere it is used by blocks. Save and load variables from a separate file.

Data Objects

Specify properties for parameters, signals, and states, including parameter values, outside of a block diagram by using external data objects.

Symbol Resolution

You can control how blocks in a model resolve symbols to variables and objects that you create in workspaces.

Define Data Classes

Customize the way your model interacts with data (signals, parameters, and states) by creating your own class of data object.

Upgrade Level-1 Data Classes

Simulink® no longer supports level-1 data classes. You must upgrade data classes that you created using the level-1 data class infrastructure, which was removed in a previous release.