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

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jan 2010
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!