이 페이지의 최신 내용은 아직 번역되지 않았습니다. 최신 내용은 영문으로 볼 수 있습니다.

코드 생성

툴박스 함수에 대한 C 코드와 MEX 함수 생성

MATLAB® Coder™는 코드 생성을 지원하는 Statistics and Machine Learning Toolbox™ 함수에서 독립형 ANSI 호환 C 코드 또는 MEX 함수를 생성합니다. 예를 들어, 코드 생성을 사용하여 MATLAB을 실행할 수 없는 하드웨어 장치에 훈련된 이진 또는 다중클래스 서포트 벡터 머신 분류 모델을 배포하여 이 장치에서 새 관측값을 분류할 수 있습니다.

함수

saveCompactModelSave model object in file for code generation
loadCompactModelReconstruct model object from saved model for code generation

도움말 항목

Code Generation Support, Usage Notes, and Limitations

View code generation usage notes, limitations, and the list of code-generation-enabled Statistics and Machine Learning Toolbox functions.

Introduction to Code Generation

Learn how to generate C/C++ code for Statistics and Machine Learning Toolbox functions.

Code Generation for Prediction of Machine Learning Model Using MATLAB Coder App

Generate code for the prediction of a classification or regression model by using the MATLAB Coder app.

Code Generation and Classification Learner App

Train a classification model using the Classification Learner app, and generate C/C++ code for prediction.

Specify Variable-Size Arguments for Code Generation

Generate code that accepts input arguments whose size might change at run time.

Code Generation for Image Classification

Generate code from a MATLAB function that classifies images of digits using a trained classification model.

Predict Class Labels Using MATLAB Function Block

Generate code from a Simulink® model that classifies data using an SVM model.

System Objects for Classification and Code Generation

Generate code from a System object™ for making predictions using a trained classification model, and use the System object in a Simulink model.

Predict Class Labels Using Stateflow

Generate code from a Stateflow® model that classifies data using a discriminant analysis classifier.

Human Activity Recognition Simulink Model for Smartphone Deployment

Generate code from a classification Simulink model prepared for deployment to a smartphone.