creating a java package

2 ビュー (過去 30 日間)
abdullah nagy
abdullah nagy 2015 年 4 月 5 日
コメント済み: MAHESH 2024 年 2 月 28 日
Hello , am working on a security algorithm "kasumi" which is used in 3G. I've done coding using matlab but i need to implement my code on an android app..so am asking if i can generate a propriate jar file from the .m files used
Thanks
  1 件のコメント
MAHESH
MAHESH 2024 年 2 月 28 日
Please share the matlab code on maheshtubaki1@gmail.com

サインインしてコメントする。

回答 (1 件)

Subin Kuttappan Stellal Mary
Subin Kuttappan Stellal Mary 2017 年 3 月 2 日
One way to achieve this is by following the below steps :
1. Convert the MATLAB code that you have written into C code. This can be achieved by using MATLAB Coder toolbox.
Note: The in-built MATLAB functions used in your code must be supported for C/C++ code generation. For the list of MATLAB functions that are supported for code generation, refer this link .
2. Build this C code to a .so library.
3. Create a new Android project in Android Studio . From the base JAVA code of the sample application, call the C functions present in the .so file through JNI(Java Native Interface).
For more details on JNI, refer this and this .

カテゴリ

Help Center および File ExchangeMATLAB Mobile についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by