How to load user input onto Matlab Web App Server
이전 댓글 표시
With Matlab App designer, I used "inputdlg" to input space-separated values (e.g. 1 2 3) to upload an array of [1 2 3] to the program. However, when I push the APP to the web app server, it gives error message that inputdlg does not work with the web app server.
May you please suggest similar solutions where we could input space-separated values to upload an array into the web server app?
Below is the code that's runnable on App designer:
answer = inputdlg('Enter space-separated Parameters:','Modify Parameters', [1 50]);
app.modifiedParam = str2num(answer{1});
msgbox('Parameters are modified!');
채택된 답변
추가 답변 (1개)
Taylor
2024년 9월 19일
0 개 추천
Functions that create dialog boxes that appear as a separate window are not supported in Web Apps. You could create a temporary edit field instead, or you could just have it hidden at first and revealed whenever you would have triggered the inputdlg command.
카테고리
도움말 센터 및 File Exchange에서 Web Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!