compiler 'attempt to run script as function'
3 次查看(过去 30 天)
显示 更早的评论
I'm trying to call a few instances of Matlab code using Matlab compiler. I'm calling fom the shell, and using the process ID as an index to run different operations, so my compiled code is something like this:
function myFunction(num)
% do something
return
However, I keep getting the error, "Attempt to execute SCRIPT as a function"
According to what I've seen, this should meet the definition of a function. It it something to do with the compiler? If so, how can I get this to work? Help please!!
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!