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

  1. Running your MATLAB .jar file remotely on a server, and having your Android application connect to it, or
  2. 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.
  也就是说;         按第一种方法就是生成.jar文件,供调用。此方法最基本的配置环境是要matlab版本所支持的JDK要与所安装的Jdk阪本一致;         第二种方法:是将MATLAB的文件转换为c/c++,再来通过接口调用。

更多相关文章

  1. 一款常用的 Squid 日志分析工具
  2. GitHub 标星 8K+!一款开源替代 ls 的工具你值得拥有!
  3. RHEL 6 下 DHCP+TFTP+FTP+PXE+Kickstart 实现无人值守安装
  4. Linux 环境下实战 Rsync 备份工具及配置 rsync+inotify 实时同步
  5. 用Preferences,通过xml文件跳转到另一个Activity
  6. Android中banner的使用步骤
  7. Android(安卓)Mediascanner实现机制
  8. Android(安卓)中Edittext设置不弹出软键盘
  9. UI布局之selector layer-list

随机推荐

  1. PHP生成圆心图片-常用作头像圆图等场景
  2. hust校赛d题 PHP is the best language i
  3. 存储用户所需语言的最佳方式
  4. PHP中使用cURL实现Get和Post请求的方法
  5. 一些PHP相关的数据比较
  6. Windows7搭建Apache本地服务器+PHP环境
  7. 如何为$ wpdb-> insert创建一个包含colum
  8. 为什么cron工作不是从浏览器工作,但从终端
  9. php连接mysql的三种方法
  10. 如何递归将特色图像应用于Wordpress中的