主要内容

himl_0012: Usage of MATLAB functions for code generation

R2026b

Restrict MATLAB code to functions supported by code generation

Usage: High-Integrity System Modeling

Guideline ID: himl_0012

Rules

himl_0012: Usage of MATLAB functions for code generation

Use only MATLAB functions that support code generation.

Rationale

To detect and avoid the usage of MATLAB functions which are not supported by code generation at earliest possible stages of development.

Verification

Check MATLAB functions not supported for code generation (Simulink Check)

Industry Standards

  • IEC 61508-3, Table A.3 (3) 'Language subset'

  • IEC 62304, 5.5.3 - Software Unit acceptance criteria

  • ISO 26262-6, Table 1 (1b) 'Use of language subsets'

  • EN 50128, Table A.4 (11) 'Language Subset'

  • EN 50657, Table A.4 (11) 'Language Subset'

  • DO-331, Section MB.6.3.1.b 'Accuracy and consistency' DO-331, Section MB.6.3.2.b 'Accuracy and consistency'

Version History

Introduced in R2021b

expand all

See Also

| (MATLAB Coder)