How to embedding a matlab exe file in android studio? or an alternative to android studio.
4 次查看(过去 30 天)
显示 更早的评论
I have a matlab code that I want to generate an exe file out of ,then embedd it into my android studio application, however I have read that embedding a matlab exe file into android studio is not possibe is that true? and if it is what can I do ? what other IDEA software can I use in which I am able to embed a matlab exe file in. Or is there a way i can convert my matlab code into some other language that android studio would be able to interpret.
Please don't hesitate with any suggestion or idea or observation you have.
Thank you in advance.
4 个评论
Rik
2020-10-23
The only two solutions I can find are below: either use Coder to generate code that can be compiled for Android, or use Simulink to patch together an app.
Walter Roberson
2020-10-23
There is no present solution for embedding MATLAB graphics on Android.
The closest you can get is to use Computer Vision Toolbox to draw lines and words into an image and present the image.
We could perhaps be more specific about possibilities if you talked about what functionality the application would have to have.
回答(2 个)
Walter Roberson
2020-10-21
编辑:Walter Roberson
2020-10-21
It is true.
.exe are in machine language for Intel or AMD x64 systems, but Android phones nearly all use ARM architecture. Also, Android was derived from Linux not Windows.
You can use MATLAB Coder to generate C or C++ code for a subset of MATLAB. The subset does not support graphics.
0 个评论
Sutanu Maiti
2020-10-22
There is also an example Detect Boundaries of Objects Within Video Using MATLAB Function Block on Android Device that describes how to write MATLAB code that generates code and deploys on Android device.
Once generated app code is exported to Android Studio, you can modify the Java/xml code (in Android Studio) and run on device (from Android Studio). It will run the Simulink generated Algorithm also under the hood.
1 个评论
Walter Roberson
2020-10-22
Android does not use exe files and the user specifically wants to use exe files for the first part of the question.
For the second part of the question, Simulink models cannot really run MATLAB code: they need a restricted and augmented MATLAB-like language. Sometimes the conversion is easy, sometimes it is difficult. Graphics in particular are quite different.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Run on Android Device 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!