MATLAB: Can I pass non-scalar numeric arrays via the MATLAB Web Server to the Java script

arrayscgihtmlrepjavaMATLAB Web Servernon-scalarnumericpassscriptserverwebwebserver

I would like to pass non-scalar numeric arrays via the MATLAB Web Server to my Java script.

Best Answer

Non-scalar data cannot be passed to an HTML page via the MATLAB Web Server. The MATLAB Web Server uses CGI technology to obtain and return data to the client. The only way to pass data from MATLAB Web Server to a client is via static HTML pages.
The MATLAB Web Server uses HTMLREP to convert MATLAB Data to an HTML representable format. Refer to the Web Server documentation for more information on what data types you can convert MATLAB data to. You can also modify the associated MATLAB file to add your own conversion routines.
If you are using a Windows-based system, you might want to consider using the MATLAB COM Builder to create COM Components and them embed these components in your web services.
The only other possible workaround is to write your data to a text file and then read these files using JSP or ASP.