This is an end to end example of how to use Builder JA (Java Builder) to create a full web application that utilizes data and WebFigures to display MATLAB Figurues on the Web in an interactive way.
This example shows the "Magic Square" function in MATLAB where a user can specify the size of the square and we display it along with a surface plot of that matrix.
WebFigures is an AJAX application that enables end users to interact with the graphic to rotate/zoom/pan as they would from within MATLAB.
This example has been tested in Tomcat, please follow all of the build instructions either in the web example guide or in the build steps included with this file.
For more web examples please visit the Web Example Guide at: http://www.mathworks.com/access/helpdesk/help/pdf_doc/compiler/example_guide.pdf