주요 콘텐츠

MATLAB Coder

R2026b
MATLAB 코드에서 C 및 C++ 코드 생성

MATLAB® Coder™는 데스크탑 시스템에서 임베디드 하드웨어에 이르기까지 다양한 하드웨어 플랫폼에 대해 MATLAB 코드에서 C/C++ 코드를 생성합니다. 또한 MATLAB 언어 대부분과 다양한 툴박스를 지원합니다. 읽기와 이식이 가능한 생성 코드를 소스 코드, 정적 라이브러리 또는 동적 라이브러리로 기존 C/C++ 프로젝트에 통합할 수 있습니다. MATLAB Coder를 통해 생성 코드를 MEX 함수로 패키징하여 MATLAB에서 사용할 수 있습니다. 멀티코어와 벡터화된 코드를 통합하고 최적화된 라이브러리를 호출하여 생성 코드를 최적화할 수 있습니다.

MATLAB Coder는 코드 사용자 지정, 하드웨어별 최적화, 코드 추적성, SIL(Software-in-the-Loop) 테스트와 PIL(Processor-in-the-Loop) 테스트를 통한 코드 검증, MISRA™ 지침을 준수하는 코드(Embedded Coder® 사용)를 제공합니다.

MATLAB이 지원하는 호스트 플랫폼에 MATLAB 프로그램을 배포하려면 MATLAB Compiler™를 사용하십시오.

MATLAB Coder 시작하기

MATLAB Coder의 기본 사항 배우기

코드 생성을 위한 MATLAB 프로그래밍

코드 생성을 위한 MATLAB 언어 구문 및 함수, 데이터 정의

코드 생성

C/C++ 및 MEX 코드 생성, 오류 수정, 동작 검증

배포

생성된 C/C++ 코드 사용 및 실행

성능

코드 생성 시간 단축, 생성 코드의 실행 속도 향상, 생성 코드의 메모리 사용량 줄이기

MATLAB 알고리즘 가속화

생성된 MEX 함수를 사용한 가속화

숫자형 변환

고정소수점 변환, 단정밀도 변환(Fixed-Point Designer™ 필요)

MATLAB Coder를 사용한 딥러닝

딥러닝 신경망을 위한 C/C++ 코드 생성(Deep Learning Toolbox™ 필요)

PyTorch 및 LiteRT 모델에 대한 코드 생성

PyTorch® ExportedProgram 및 LiteRT 모델에 대한 C, C++, CUDA 코드 생성

MATLAB Coder에서 지원되는 하드웨어

타사 하드웨어 지원


문제 및 수정에 관한 버그 리포트 확인

Software is inherently complex and is not free of errors. The output of a code generator might contain bugs, some of which are not detected by a compiler. MathWorks reports critical known bugs brought to its attention on its Bug Report system at www.mathworks.com/support/bugreports/. Click the "Incorrect Code Generation" filter to obtain a report of known bugs that produce code that might compile and execute, but still produce wrong answers. To save the filtered results, click Save Search.

The bug reports are an integral part of the documentation for each release. Examine periodically all bug reports for a release, as such reports may identify inconsistencies between the actual behavior of a release you are using and the behavior described in this documentation.

In addition to reviewing bug reports, you should implement a verification and validation strategy to identify potential bugs in your design, code, and tools.

R2026b 버그 리포트 검색

잘못된 코드 생성 관련 알려진 버그
이 제품 관련 알려진 버그