Menu function not working on matlab mobile

조회 수: 12 (최근 30일)
Liam De Potter
Liam De Potter 2023년 6월 22일
답변: Ayush 2023년 7월 17일
Hi there,
pretty simple question: i made a script with a menu function in it, transferred the matlab file to my phone and when i run it, the menu shows up as a figure. (non interactable)
Does anyone know a fix for this? ty in advance
  댓글 수: 2
Nikhil
Nikhil 2023년 6월 23일
Can you share your script to reproduce the issue?
Liam De Potter
Liam De Potter 2023년 6월 23일
Sure, don't judge me on any inefficient coding though :P
I put the script as well as the needed data in attachments :) ty

댓글을 달려면 로그인하십시오.

답변 (1개)

Ayush
Ayush 2023년 7월 17일
Hi Liam De Potter,
As per my understanding you are trying to run a script which has the "menu" function which you created probably on MATLAB desktop or MATLAB online on MATLAB mobile.
The behavior and functions of the MATLAB script may differ from running in a desktop environment when it is performed on another platform, e.g. Mobile devices. The "menu" function, which typically creates an interactive menu based on text in the MATLAB Command Window, may not work as expected on a mobile device.
Mobile devices generally do not have a MATLAB Command Window or support the same interactive text-based interface. Therefore, when running the script on your phone, the "menu" function may display as a figure, but it will not be interactable.
In order to develop an interactive user interface for a mobile device, it is necessary to utilize a mobile application development framework or application development tool that is compatible with the relevant platform (i.e., Android, iOS, etc.). MATLAB offers the capability to develop mobile applications using App Designer and MATLAB Mobile application, however, this requires additional steps and considerations other than simply executing a MATLAB script.
If you want to run MATLAB scripts on your phone with a graphical user interface, you may need to explore options such as developing a mobile app using MATLAB Mobile. MATLAB Mobile allows you to create and run MATLAB code on your mobile device. You can use App Designer to design the user interface and incorporate MATLAB code for the desired functionality.

카테고리

Help CenterFile Exchange에서 MATLAB Mobile에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by