Can I change the name of a function during codegen?
이전 댓글 표시
Can I change the name of a function during codegen? For example, if I hava a Matlab function called foo, can I make its genrated C function name be something like foo_cg (_cg for CodeGen)?. The motivation for this is that I have a custom version of the C foo and legacy code that uses it, and I don't want to change that code. I also have legacy Matlab code that uses the Matlab foo, so I don't want to changes its name either.
채택된 답변
추가 답변 (1개)
Jeff Tackett
2025년 3월 4일
1 개 추천
Starting in R21a, you can configure generated code naming via: CustomFileNameStr
In the MATLAB Coder GUI, it looks like:

카테고리
도움말 센터 및 File Exchange에서 Algorithm Design Basics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!