MATLAB 코드 준비
코드 생성 전에 MATLAB® 코드의 문제 식별 및 수정
MATLAB 코드에서 C/C++ 코드를 성공적으로 생성할 수 있을지 여부는 코드 생성 규칙 및 제한 사항을 준수하는지에 따라 결정됩니다. 예를 들어, MATLAB 코드는 코드 생성에 지원되는 함수와 객체만 사용해야 합니다. C/C++ 코드 생성 전에 MATLAB 코드 관련 문제를 식별하고 수정하기 위해 코드 분석기와 코드 생성 준비 툴을 사용할 수 있습니다.
함수
coder.screener | Determine if function is suitable for code generation |
getLineColumn | Find locations of beginning and end of MATLAB code involved in code generation |
textReport | Export code generation readiness report to base workspace as a character vector (R2022a 이후) |
속성
| coder.CallSite Properties | Information about a function call site in your MATLAB code (R2022a 이후) |
| coder.CodeFile Properties | Description of file containing text that is involved in code generation |
| coder.File Properties | Description of file without text that is involved in code generation |
| coder.Message Properties | Description of message produced during code generation readiness analysis or during code generation |
| coder.ScreenerInfo Properties | Code generation readiness information (R2022a 이후) |
도움말 항목
코드 생성 준비하기
- 진입점 함수 식별하기와 MATLAB 코드 검사하기
코드를 생성하기 전에 진입점 함수를 식별하고 MATLAB 코드에 오류가 있는지 검사합니다. - 코드 생성 준비 툴
코드 생성 준비 툴은 MATLAB 코드에 코드 생성에서 지원하지 않는 기능과 함수가 있지 않은지 검사합니다.
문제 해결하기
- 오류 해결: 코드 생성 시 함수가 지원되지 않음
지원되지 않는 MATLAB 함수의 코드 생성 실패 문제를 해결합니다.