how can I turn my .m file into C?
4 views (last 30 days)
Show older comments
Kay Wonderley
on 25 Mar 2018
Edited: Walter Roberson
on 28 Mar 2018
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 Comments
Accepted Answer
Anish Navalgund
on 27 Mar 2018
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 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!