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?