This demo uses MATLAB Builder for Java to create a Java component from a MATLAB function rankine.m. A graphical user interface (GUI) was created in Java which calls into the MATLAB created component to compute the thermodynamic properties of an Ideal Rankine cycle.
One point of interest in this demo is the use of the MATLAB structure as input and output of the rankine.m function. The use of a structure requires the data passed into and out of the component use the MWStructArray object from the MWArray Class Library in com.mathworks.toolbox.javabuilder.
· MATLAB Release: R2006b
· MATLAB Builder for Java
· MATLAB Compiler