Borrar filtros
Borrar filtros

How to embedding a matlab exe file in android studio? or an alternative to android studio.

5 visualizaciones (últimos 30 días)
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 comentarios
Rik el 23 de Oct. de 2020
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
Walter Roberson el 23 de Oct. de 2020
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.

Iniciar sesión para comentar.

Respuestas (2)

Walter Roberson
Walter Roberson el 21 de Oct. de 2020
Editada: Walter Roberson el 21 de Oct. de 2020
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.

Sutanu Maiti
Sutanu Maiti el 22 de Oct. de 2020
You can achieve this by using Simulink support package for Android Devices.
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 comentario
Walter Roberson
Walter Roberson el 22 de Oct. de 2020
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.

Iniciar sesión para comentar.


Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by