Compile the code for smartphone

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

4 个评论

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.

请先登录,再进行评论。

 采纳的回答

Image Analyst
Image Analyst 2021-12-2
编辑:Image Analyst 2025-5-13

1 个投票

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 个评论

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.

请先登录,再进行评论。

更多回答(1 个)

Sutanu Maiti
Sutanu Maiti 2021-12-7

0 个投票

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 个评论

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.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 MATLAB Mobile 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by