How to load user input onto Matlab Web App Server
Show older comments
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!');
Accepted Answer
More Answers (1)
Taylor
on 19 Sep 2024
0 votes
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.
Categories
Find more on MATLAB Web App Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!