How can I create MEX function from a .m program?
1 次查看(过去 30 天)
显示 更早的评论
I have a .m script from MATLAB and I want to convert it into an MEX function, in order to fasten the process. The application MATLAB Coder tells me that it's only possible with functions. However, I convert it into a function but it still give me errors to make the conversion. How can I do that conversion? On the other hand, how can I run this program when it is a MEX function?
In my code there is an "ode45" command that goes really slow in process, and it is giving me problems. Is there any possibility to fasten its execution?
Thanks for all
David
2 个评论
Guillaume
2019-5-20
"but it still give me errors to make the conversion"
Until you tell use what the errors are, we can't tell you how to solve them. So, please give us the full text of the error message.
"Is there any possibility to fasten its execution"
Again, if you don't show us what you do, how can we tell? So show us your code as well.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!