Compile the code for smartphone

Hi, I would like to know how to compile my code to run on my smartphone.

4 Comments

This probably would require converting your Matlab code to C and finding a compiler that can create the binary for your specific device.
What have you tried?
I'm still researching and developing the program, but I'm already looking for how to compile it for mobile devices.
Would you know how to tell me how I could do this conversion so I can test some methods.
Start with Google. I expect the process will depend on what smartphone you happen to own. Since you insist on not telling us, we can't help you.
Not quite that, I asked the question in general, both for smartphones that use iOS and for smartphones that use Android.
Mine, in this case, is a xiaomi redmi note 9.

Sign in to comment.

 Accepted Answer

Image Analyst
Image Analyst on 2 Dec 2021
Edited: Image Analyst on 13 May 2025
Looks like you need the MATLAB Coder Toolbox and the Compiler Toolbox. Here's a video, that's pretty nonspecific, that says you can do it with an iPhone or iPad. I didn't see anything for Android.

1 Comment

Thank you very much, I will take a look at the video and try to understand. kkkkkkkkkkk
I'm Brazilian and I don't speak English. I'm using Google translator to talk to you guys.

Sign in to comment.

More Answers (1)

Sutanu Maiti
Sutanu Maiti on 7 Dec 2021
You may use MATLAB add-on feature Simulink Support package for Android devices to create an Android App right from Simulink model without writing any code.
PLease have a look at below links for details:

2 Comments

Is there any way to do it without having Simulink? Like if you just have base MATLAB and the MATLAB Compiler toolbox?
Just MATLAB and MATLAB Compiler? I'm pretty sure the answer is no, that applications generated by MATLAB Compiler can only be deployed to platforms on which MATLAB is supported.
MATLAB and MATLAB Coder? See the "Prototype on Hardware" section on the MATLAB Coder product page for a short video that discusses at a very high level generating code for iPhone or iPad.

Sign in to comment.

Categories

Find more on MATLAB Mobile in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!