주요 콘텐츠

MATLAB 함수 및 MATLAB 코드 관련 고려 사항

R2026b
MATLAB 함수, MATLAB® 코드

MATLAB 함수 및 MATLAB 코드에 고무결성 지침을 적용합니다.

모델링 지침

모두 확장

himl_0001: 표준화된 MATLAB 함수 헤더 사용Use a standardized header to document the purpose and use of MATLAB functions
himl_0003: 사용자 정의 MATLAB 함수의 복잡도Limit the size and complexity of MATLAB function code
himl_0002: MATLAB 함수 경계에 강한 데이터형 지정Explicitly define the complexity and type of input signals, output signals, and parameters at MATLAB function interfaces
himl_0004: 코드 생성에 대한 MATLAB 코드 분석기 권장 사항Use MATLAB Code Analyzer with %#codegen directive and follow code generation recommendations
himl_0006: MATLAB 코드의 if/elseif/else 패턴Terminate if/elseif/else constructs with an else statement containing meaningful comment
himl_0007: MATLAB 코드의 switch/case/otherwise 패턴Include at least two case statements and an otherwise statement with a meaningful comment in switch constructs
himl_0008: MATLAB 코드의 관계 연산자 데이터형Use the same data type for left and right operands of relational operators
himl_0010: 논리 연산자 및 함수가 있는 MATLAB 코드Use logical data types for logical operators and logical functions
himl_0011: 조건식의 데이터형 및 크기Use logical scalars for condition expressions
himl_0012: 코드 생성 시 MATLAB 함수 사용Restrict MATLAB code to functions supported by code generation
himl_0013: 내장 MATLAB 함수 복잡도에 대한 제한 사항Limit built-in MATLAB function usage that may produce overly complex generated code