MATLAB Answers

Can Web Apps take input arguments?

21 views (last 30 days)
I am setting up a server to process data uploaded to it remotely. I'm using Matlab Web Apps to do the processing but I need to provide the app with the location of the files. I have this all working in AppDesigner by supplying the app with input arguments but there does not seem to be any information on how these work in Web Apps or whether it is supported at all (at least, not in the list in the Matlab help about what AppDesigner features that aren't supported in Web Apps).
Does anyone know if this is possible/impossible and, if possible, how it works?
Many thanks in advance.

  0 Comments

Sign in to comment.

Accepted Answer

Chris Portal
Chris Portal on 9 Jun 2018
Currently, it’s a limitation, but there’s a workaround. This is what the doc says:
“Opening files and folders on the client, or loading and saving files on the client via uigetfile, uiputfile, and uigetdir is not supported. As a workaround, MATLAB file I/O functions such as readtable, load, and fread will work if the file or folder is on a network location accessible by both the client and server.”

  5 Comments

Show 2 older comments
Huub Bakker
Huub Bakker on 10 Jun 2018
Many thanks. I will find a workaround. Just needed to be sure that it wasn't supported.
Klemen Peter Kosovinc
Klemen Peter Kosovinc on 3 Oct 2018
Dear Hubb, did you maybe find the workaround? Did anything change with new release of Matlab (R2018b)? Thanks, Klemen
Huub Bakker
Huub Bakker on 3 Oct 2018
Yes. Just hardwire the location of a configuration file into the Web App and then load the file with the location of the files you want to work on. A bit more roundabout, but still OK.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2018a