How to export data from MATLAB to machine language
2 次查看(过去 30 天)
显示 更早的评论
hey i have just finished writing a code in matlab to run certain machine. how do i export the code from matlab to a language that can be read and executed by any machine?
0 个评论
回答(2 个)
Paulo Silva
2011-4-18
deploytool %it will only work if you have the required toolboxes
11 个评论
Jiro Doke
2011-5-3
The original answer by Paulo is probably the best choice here. Either use "deploytool" with MATLAB Compiler product or re-implement everything yourself in another language.
Walter Roberson
2011-4-18
The closest you can get to what you actually asked would be to convert the program to a Turing Machine; then to use it on any machine, it would only be necessary to write the appropriate Universal Turing Machine shim appropriate to the Turing Machine implementation on that machine.
Unfortunately, embedded systems often have enough resource restrictions that they would not reasonably be classified as Turing Complete. You are very unlikely to be able to fit your image processing program in to your toaster, for example, and if you did then the "input" to the toaster would probably have to be encoded in moisture levels of the pieces of bread.
Possibly you might be able to get the program to fit on your Digital Watch With The Special Snooze Alarm, but it might be hard to find one of those that still works.
6 个评论
Jiro Doke
2011-5-3
Is that a standalone compiled application? Or do you actually have the C# source code that you can modify and integrate your MATLAB application? If it's a standalone, does it provide some kind of API that you can call from outside to send command to the motion table? If it provides some shared library, then you can incorporate that into your MATLAB program (using "loadlibrary") and then compile your application using MATLAB Compiler.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!