주요 콘텐츠

코드 생성 지침: 배포 가능한 C/C++ 코드 생성하기

MATLAB® Coder™를 사용하면 MATLAB 코드에 대한 C/C++ 코드를 생성할 수 있습니다. 다음을 수행할 수 있습니다.

  • 프로젝트에서 소스 코드, 정적 라이브러리 또는 동적 라이브러리로 사용할 독립 실행형 C/C++ 코드 생성.

  • 연산량이 많은 작업을 가속화하기 위해 MEX 코드 생성.

이 지침의 작업을 따라 독립 실행형 코드 생성 및 배포에 대해 알아보십시오.

  1. 코드 생성을 위한 MATLAB 코드를 준비합니다.

  2. MATLAB 코드에서 C/C++ 코드를 생성합니다.

  3. 생성된 C/C++ 코드를 테스트합니다.

  4. 생성된 코드를 기존 프로젝트에 배포합니다.

코드 생성 과정을 완료하는 데 필요한 작업을 파악하려면 이 워크플로 다이어그램을 사용하십시오.

빠른 시작 워크플로

This image highlights the steps involved in the code generation. It starts with identifying the function to generate code for. In the second step, prepare the MATLAB code for code generation. In the third step, specify input types and check for run-time issues. Follow this by configuring build settings and generating code. Test the generated code to see if it performs as expected. If not, make changes in the code or in the build configurations. Deploy the required code as the last step.

튜토리얼을 시작하려면 코드 생성을 위해 MATLAB 코드 준비하기 항목을 참조하십시오.

참고 항목

도움말 항목