Anyone have Java implementation for Matlab functions?

2 visualizaciones (últimos 30 días)
Yifei
Yifei el 27 de Ag. de 2012
Hi All,
I am currently working on my graduate thesis which requires to implement signal processing and pattern recognition in Android platform. But I cannot use Matlab libraries directly in Android, not only because of the difficulty and the possibility to drain battery and drag the system down, but also the license issue to use Matlab in an open source project. Therefore I need to seek other solutions. So is there an open source Java or C implementation for Matlab functions? If there is some Java code I could use, it will be awesome. But if there is only some C code, it will be somehow painful to employ JNI in Android, but better than nothing~
Anyone who has a link or some code, please let me know. Thank you so much for your time reading this anyway. And big thanks for the people who help.
Thank you!

Respuesta aceptada

Friedrich
Friedrich el 28 de Ag. de 2012
Hi,
this could be worth a shot:
use MATLAB Coder to generate C code out of your MATLAB code. Then use some ARM compiler and compile it into a format which the android supports. Then use JNI to load that compiled code.
This should work as long your MATLAB code is supported for code generation:
I have never done it but it seems to me like it should work.

Más respuestas (1)

Jan
Jan el 28 de Ag. de 2012
This is a very general question. You will not find a Java toolbox, which replaces all Matlab functions. Because Matlab's toolbox functions depend on each other, you will even not be able to find a sufficiently large subset of function, which could be converted to Java. Therefore it would be smarter to ask for specific routines. Creating your program from scratch will be more efficient than looking for a Matlab replacement.

Categorías

Más información sobre Setup and Configuration 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