how can I turn my .m file into C?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have an involved script file which runs. I have tried to turn it into C with the Matlab coder App. It is asking for a function, and hence and when I load this file it does not except it saying it is a script. but it wants a function. Could somebody give me some pointers?
댓글 수: 2
채택된 답변
Anish Navalgund
2018년 3월 27일
Hi! Matlab coder only converts function files to .c I suggest you to remove all your input functions like scanf() and build your code to act as a function where you have your input and output arguments.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!