I have an algorithm and some other code which is in MATLAB and I want to use it in my Android application.
How can I do this?
The MATLAB® Mobile™ app is available from the Google Play™ store on the Web. To download the MATLAB Mobile app: Tap the Google Play icon on your device.
One option is to use MATLAB Coder, which generates C code from your MATLAB algorithm. You can then integrate the generated C code into your iOS and Android apps. Here's a webinar and example code that shows this workflow: MATLAB to iPhone and Android Made Easy.
Simulink® Support Package for Android™ Devices lets you program and run algorithms on Android smartphones and tablets.
Connect to MATLAB from your iPhone, iPad, or Android device Connect to a MATLAB® session running on MathWorks Cloud.
If you have an additional product, MATLAB Builder JA for Java, you can produce a .jar file from your MATLAB code.
However, the .jar file requires the MATLAB Compiler Runtime (a freely redistributable component that you get with MATLAB Compiler and MATLAB Builder products) to be present. The MCR has a much larger footprint than is suitable for the typical Android device (it's like a copy of MATLAB itself, without the user interface).
You could think about either
Edit: As of R2015a, functionality from MATLAB Builder JA for Java has been replaced by a new product, MATLAB Compiler SDK.
I am the developer of Addi. http://addi.googlecode.com Addi is quickly becoming a full port of Octave (which is an open source tool that uses Matlab syntax). Addi is going to have intents for other applications to use it as their math engines or plotting engines. So, if you can run your code on Octave, then very soon you will be able to run it on Android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With