How to deploy a Matlab app to iOS and Android?

210 ビュー (過去 30 日間)
daniel hennessy
daniel hennessy 2013 年 4 月 11 日
回答済み: BHOOMIKA MS 2024 年 10 月 18 日
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!

採用された回答

Bill Chou
Bill Chou 2017 年 3 月 10 日
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:

その他の回答 (5 件)

Walter Roberson
Walter Roberson 2013 年 4 月 11 日
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

saras
saras 2016 年 7 月 22 日
The following two products will allow you to generate code for mobile devices:
and
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 7 月 22 日
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.
ugur arslan
ugur arslan 2020 年 12 月 11 日
thanks

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


daniel hennessy
daniel hennessy 2013 年 4 月 11 日
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!
  5 件のコメント
Sven Mixer
Sven Mixer 2014 年 4 月 10 日
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?
NICOLE MIN
NICOLE MIN 2021 年 5 月 9 日
i have a function code created from GUI, how can i use the Matlab code to convert my function script to C code. i ve tried several times but failed, i have these error

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


BHOOMIKA MS
BHOOMIKA MS 2024 年 10 月 18 日
[a, t]=accellog(m); Plot(t, a); legend('X','Y','Z'); xlabel('relative time (s)'); ylabel('acceleration (m/s^2);

BHOOMIKA MS
BHOOMIKA MS 2024 年 10 月 18 日
[a, t]=accellog(m); Plot(t, a); legend('X','Y','Z'); xlabel('relative time (s)'); ylabel('acceleration (m/s^2);

カテゴリ

Help Center および File ExchangeAndroid Devices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by