How to export data from MATLAB to machine language

1 回表示 (過去 30 日間)
Judith Amulen
Judith Amulen 2011 年 4 月 18 日
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?

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 4 月 18 日
deploytool %it will only work if you have the required toolboxes
  11 件のコメント
Kaustubha Govind
Kaustubha Govind 2011 年 5 月 3 日
Sorry. Can't think of anything else other than re-implementing. :(
Jiro Doke
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
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 件のコメント
Judith Amulen
Judith Amulen 2011 年 5 月 3 日
A software written in c# is controlling the motion table.
Jiro Doke
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 ExchangeSimultaneous and Synchronized Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by