android调用matlab中的函数方法
16lz
2021-01-25
How to integrate Matlab code library with Android?
由于课题要求,需要在android平台实现比较复杂的画图,用Achartengine研究了也难以达到,于是便想借用matlab中的函数方法。经网上查找资料后,有如下方法:
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
- Running your MATLAB .jar file remotely on a server, and having your Android application connect to it, or
- Instead of using MATLAB Compiler and Builder products, use MATLAB Coder, which will convert a subset of the MATLAB language directly into C code. This C code doesn't require the MCR, and could be compiled to run directly on Android. Make sure your MATLAB algorithm falls within, or can be expressed in, the appropriate subset of the MATLAB language.
更多相关文章
- 一款常用的 Squid 日志分析工具
- GitHub 标星 8K+!一款开源替代 ls 的工具你值得拥有!
- RHEL 6 下 DHCP+TFTP+FTP+PXE+Kickstart 实现无人值守安装
- Linux 环境下实战 Rsync 备份工具及配置 rsync+inotify 实时同步
- 用Preferences,通过xml文件跳转到另一个Activity
- Android中banner的使用步骤
- Android(安卓)Mediascanner实现机制
- Android(安卓)中Edittext设置不弹出软键盘
- UI布局之selector layer-list