Main Content

MATLAB Coder

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

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

Embedded Coder®와 함께 사용할 경우 MATLAB Coder는 코드 사용자 지정, 타깃별 최적화, 코드 추적성 및 SIL(Software-in-the-Loop) 검증과 PIL(Processor-in-the-Loop) 검증을 제공합니다.

MATLAB 프로그램을 독립 실행형 애플리케이션으로 배포하려면 MATLAB Compiler™를 사용하십시오. 다른 프로그래밍 언어와 통합하기 위한 소프트웨어 컴포넌트를 생성하려면 MATLAB Compiler SDK™를 사용하십시오.

MATLAB Coder 시작하기

MATLAB Coder의 기본 사항 배우기

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

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

코드 생성

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

배포

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

성능

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

MATLAB 알고리즘 가속화

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

숫자형 변환

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

MATLAB Coder를 사용한 딥러닝

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

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/. In the search bar, type the phrase "Incorrect Code Generation" to obtain a report of known bugs that produce code that might compile and execute, but still produce wrong answers. To save a search, 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.

R2024a 버그 리포트 검색

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