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!