MATLAB Answers

How to deploy a Matlab app to iOS and Android?

I'm new to Matlab but I'm working with a developer that has an algo that is written in Matlab. I want to port this application to iOS & Android without having to rewrite the algo in Java , C etc. This application will be packaged with other C code. Will Matlab compiler achieve this purpose? Are there any gotchas with Matlab compiler once it comes time to deploy on iOS and android ? e.g. unsupported functions etc - thanks!

  댓글 수: 0

로그인 to comment.

답변 수: 4

Answer by Bill Chou
on 10 Mar 2017
 Accepted Answer

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:
A few customers have tried this approach. In particular, Respiri created an Android and iPhone app for their wheeze detection product:

  댓글 수: 0

로그인 to comment.


Answer by Walter Roberson
on 11 Apr 2013

The MATLAB Compiler will not do this for you, and that includes Java Builder. You need MCR (MATLAB Component Runtime) which requires MS Windows, Linux, or OS-X to run on.
The closest you can get is MATLAB Mobile

  댓글 수: 0

로그인 to comment.


Answer by daniel hennessy on 11 Apr 2013

thanks Walter for your prompt and very clear answer. From what I know of MATLAB Mobile I think the round trip time to a remote server will render the app unusable.
From your knowledge, when developers need to rewrite MATLAB code to run on IOS/Android is there a language that lends itself best to this ? i.e. in terms of what similar functions may exist in the target language? Are the options essentially Java, C, ojbective C, C++ - thanks!

  댓글 수: 4

표시 이전 댓글 수: 1
I've got similar question and found this topic very useful, I am using Image Processing toolkit. I am interested how I can port MATLAB code to iOS and Android? Is there any tool for it? I've heard of MATLAB Coder, do someone has experience with it? Will it solve my problem by generating C code and C code I can insert into iOS (as Objective C++).
If what you are doing at the MATLAB level is pure calculation without display or reading or writing images or frame capture, then MATLAB Coder can handle most of the Image Processing Toolkit routines for that these days.
Any graphics or file reading or writing you would have to handle at the C++ level.
Thank you very much in such a prompt and clear answer. Now I am sure I've understood it right.
In what means can MATLAB Coder product can be obtained for probation and trial? Can we get Price offer on that?

로그인 to comment.


Answer by saras
on 22 Jul 2016

The following two products will allow you to generate code for mobile devices:
and

  댓글 수: 1

Notice that those two require that you use Simulink to control the generation. Those two are not general purpose "deploy MATLAB code to Android / iOS": you have to live with the various restrictions of Simulink.

로그인 to comment.



Translated by