MATLAB Coder 시작하기
MATLAB® Coder™는 데스크탑 시스템에서 임베디드 하드웨어에 이르기까지 다양한 하드웨어 플랫폼에 대해 MATLAB 코드에서 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™를 사용하십시오.
튜토리얼
- 단계 1: Prepare MATLAB Function for Code Generation
- 단계 2: Automatically Define Input Types in the MATLAB Coder App
- 단계 3: Check for Code Generation Issues by Generating and Running a MEX Function
- 단계 4: Configure Code Generation Settings and Generate Code
- 단계 5: Verify Generated Code by Using SIL or PIL
- 단계 6: Optimize and Deploy Generated Code
- Diagnose Common Code Generation Errors and Warnings
Learn how to resolve common errors when generating C or C++ code from MATLAB code.
MATLAB Coder 앱을 사용하여 C 코드 생성하기
MATLAB Coder 앱을 사용하여 예제 MATLAB 함수로부터 C 코드를 생성합니다.
MATLAB 알고리즘에서의 코드 생성 정보
- Decide Which Code Generation Product to Use
Understand the differences between MATLAB Coder and other MathWorks® products.
- Input Type Specification for Code Generation
How input type specification affects the generated C/C++ code.
- Differences in Appearance of Generated Code and MATLAB Code
How generated code appears different from MATLAB code due to optimizations made by the code generator.
- Configure Code Generation and Build Settings
Configure code generation and build configuration parameters at the command line or in the MATLAB Coder app.
- MATLAB Coder를 사용한 코드 생성 개요
MATLAB Coder 코드 생성 워크플로.
추천 예제
대화형 학습
MATLAB Coder Onramp
MATLAB 함수에서 C 및 C++ 코드를 생성하기 위한 기본 사항을 알아봅니다.
비디오
MATLAB 코드에서 C 코드 생성하기
MATLAB 코드에서 C/C++ 코드를 생성하는 워크플로


