Code covered by the BSD License  

Highlights from
varargServlet

Be the first to rate this file! 13 Downloads (last 30 days) File Size: 152 KB File ID: #16305
image thumbnail

varargServlet

by David Forstot

 

09 Sep 2007 (Updated 01 Oct 2007)

Integration of a MATLAB created Java Component to a web deployed application incorporating graphical

| Watch this File

File Information
Description

This demo uses MATLAB Builder for Java to create a Java component from a MATLAB function varargexample.m. A Java Servlet was created which calls into the MATLAB created component to display a plot of the arguments specified. The plot is displayed in the web page using Web Figures feature of MATLAB Builder for JAVA.

One point of interest in this demo is the use of the MATLAB varargin and varargout for optional input and output to the varargexample.m function. The use of variable arguments involves logic on the Java implementation side to call the MATLAB created component with the correct arguments.

Required Products MATLAB Builder JA
MATLAB release MATLAB 7.5 (R2007b)
Other requirements Java Software Development Kit v1.6
Tags for This File  
Everyone's Tags
external interface(4), java_web_vararg_demo web deployment java varargin varargout java(3)
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
28 Apr 2009 Stuart Bowman

No output is created by this demo when I click the displayPlot button. Anyone want to hazard a guess as to why?

Config Info:
Windows XP SP 3, Matlab R2008b, Apache Tomcat 6.x

28 Apr 2009 Stuart Bowman

FYI, The auto-compile script in this demo does not seem to work if the files exist in a path with spaces in the name (eg c:\program files\Matlab...). I get a path error in doMcc().

Updates
01 Oct 2007

Updated Keywords for submission and version of MATLAB.

Contact us