Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

데이터형

특정 데이터형을 신호 및 블록 파라미터에 할당, 열거형 정의

모델에서는 데이터형이 신호 및 블록 파라미터 간의 상호 작용을 결정합니다. 숫자 데이터형은 컴퓨터가 메모리에 신호 및 파라미터를 저장하는 방법과 수학 연산을 수행하는 방법을 결정합니다. 다른 Simulink® 데이터형은 신호 및 파라미터의 구조체 또는 이에 허용되는 값을 결정합니다.

컴퓨터 하드웨어의 수학적 동작을 시뮬레이션하거나 모델에서 효율적인 코드를 만들려면 신호 및 파라미터의 숫자 데이터형을 제어하면 됩니다. 부동소수점, 정수, 고정소수점 및 기타 숫자형을 지정할 수 있습니다. Simulink에서 지원되는 데이터형 항목을 참조하십시오.

열거형 데이터형은 신호 및 파라미터가 지정된 값 세트만 사용하도록 허용합니다. 열거형 값 각각에 대해 의미 있는 이름을 제공하여 모델의 가독성을 높일 수 있습니다. Simulink에서 열거형을 사용하려면 Use Enumerated Data in Simulink Models 항목을 참조하십시오.

버스 유형을 사용하여 여러 신호 또는 파라미터를 함께 그룹화할 수 있으며, 이를 통해 모델의 가독성을 높이고 보다 쉽게 모델을 유지관리할 수 있습니다. Specify Bus Properties with Bus Objects 항목을 참조하십시오.

string형을 사용하면 모델에 문자열을 손쉽게 사용할 수 있습니다.

블록

모두 확장

Block Support TableView data type support for Simulink blocks
Data Type Conversion입력 신호를 지정된 데이터형으로 변환
Data Type Conversion InheritedConvert from one data type to another using inherited data type and scaling
Data Type DuplicateForce all inputs to same data type
Data Type PropagationSet data type and scaling of propagated signal based on information from reference signals
Data Type Scaling StripRemove scaling and map to built in integer
ASCII to Stringuint8형 벡터 신호를 string형 신호로 변환
Compose StringCompose output string signal based on specified format and input signals
Scan StringScan input string and convert to signals per specified format
String CompareCompare two input strings
String Concatenate입력 문자열을 결합하여 하나의 출력 문자열 형성
String Constant지정된 문자열 출력
String ContainsDetermine if string contains, starts with, or ends with pattern (R2020a 이후)
String CountCount occurrences of pattern in string (R2020a 이후)
String FindReturn index of first occurrence of pattern string
String LengthOutput number of characters in input string
String to ASCIIstring형 신호를 uint8형 벡터로 변환
String to DoubleConvert string signal to double signal
String to EnumInput string signal to enumerated signal
String to SingleConvert string signal to single signal
SubstringExtract substring from input string signal
To StringConvert input signal to string signal

함수

모두 확장

enumeration클래스의 열거형 멤버와 이름
Simulink.defineIntEnumTypeDefine enumerated data type
Simulink.findIntEnumTypeFind enumeration classes defined by Simulink.defineIntEnumType
Simulink.clearIntEnumTypeDelete enumeration classes defined by Simulink.defineIntEnumType
Simulink.data.getEnumTypeInfoGet information about enumerated data type
Simulink.data.isSupportedEnumClassDetermine whether an enumeration class is valid for Simulink
Simulink.data.isSupportedEnumObjectDetermine whether an enumeration object is valid for Simulink
fixdt고정소수점 또는 부동소수점 데이터형을 나타내는 Simulink.NumericType 객체 생성
fixpt_evenspace_cleanupModify breakpoints of lookup table to have even spacing
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
Simulink.importExternalCTypesC 또는 C++ 코드에서 정의한 사용자 지정 데이터형을 나타내는 Simulink 표현을 생성
tunablevars2parameterobjectsCreate Simulink parameter objects from tunable parameters
stringtypeCreate string data type
showblockdatatypetableDisplay HTML page of Simulink block data type support
Simulink.Block.getInternalDataTypeGet data type of block parameter (R2023a 이후)

클래스

Simulink.AliasTypeCreate alias for signal and parameter data type
Simulink.NumericTypeSpecify floating-point, integer, or fixed-point data type

모델 설정

모두 확장

비정규 숫자에 대한 시뮬레이션 동작Emulate hardware handling of denormal numbers
행 우선 배열 레이아웃에 최적화된 알고리즘 사용Enable algorithm for row-major format code generation and simulation
과소 지정된 데이터형의 디폴트 값Data type to use when Simulink cannot infer the data type
고정소수점 순 기울기 계산에 나눗셈 사용How net slope computations are performed when a change of fixed-point slope is not a power of two
이득 파라미터가 내장 정수형(무손실)을 상속함Parameter data type for Gain blocks that inherit via internal rule
부동소수점 곱셈을 사용하여 순 기울기 수정을 처리함Net slope correction computation for floating-point to fixed-point casts
단정밀도보다 작은 부동소수점 출력 유형 상속Inherited output data type behavior when block inputs are floating-point data types smaller than single precision (R2021a 이후)
애플리케이션 수명(일)Duration in days before timer overflow occurs
클록 분해능Simulate target platform clock resolution (R2023a 이후)
논리형 신호를 double형 대신 부울 데이터로 구현Logic signal data type

도움말 항목

관련 정보