edu.stanford.math.plex4.io
public class MatlabInterface extends java.lang.Object
Constructor and Description |
---|
MatlabInterface() |
Modifier and Type | Method and Description |
---|---|
static void |
exportScatterPlot2D(MatlabWriter writer,
cern.colt.matrix.DoubleMatrix2D values,
java.lang.String name)
This function writes the commands to create a scatter plot of the data in
the supplied matrix.
|
static void |
exportScatterPlot2D(MatlabWriter writer,
cern.colt.matrix.DoubleMatrix2D values,
java.lang.String name,
int[] labels)
This function writes the commands to create a scatter plot of the data in
the supplied matrix.
|
static void |
exportScatterPlot3D(MatlabWriter writer,
cern.colt.matrix.DoubleMatrix2D values,
java.lang.String name)
This function writes the commands to create a 3-D scatter plot of the
data in the supplied matrix.
|
static void |
exportScatterPlot3D(MatlabWriter writer,
cern.colt.matrix.DoubleMatrix2D values,
java.lang.String name,
int[] labels)
This function writes the commands to create a 3-D scatter plot of the
data in the supplied matrix.
|
static void |
finalizeMatlabWriter(MatlabWriter writer)
This function cleans up a MatlabWriter when it is no longer in use.
|
protected static java.lang.String |
getDefaultExtension() |
static MatlabWriter |
makeNewMatlabWriter(java.lang.String label)
This function creates and returns a new MatlabWriter.
|
protected static java.lang.String getDefaultExtension()
public static MatlabWriter makeNewMatlabWriter(java.lang.String label) throws java.io.IOException
label
- a keyword for the filenamejava.io.IOException
public static void finalizeMatlabWriter(MatlabWriter writer) throws java.io.IOException
writer
- the MatlabWriter to clean upjava.io.IOException
public static void exportScatterPlot2D(MatlabWriter writer, cern.colt.matrix.DoubleMatrix2D values, java.lang.String name) throws java.io.IOException
writer
- the MatlabWriter to write tovalues
- an n x 2 matrix containing the data to plotname
- the variable name to write tojava.io.IOException
public static void exportScatterPlot3D(MatlabWriter writer, cern.colt.matrix.DoubleMatrix2D values, java.lang.String name) throws java.io.IOException
writer
- the MatlabWriter to write tovalues
- an n x 3 matrix containing the data to plotname
- the variable name to write tojava.io.IOException
public static void exportScatterPlot2D(MatlabWriter writer, cern.colt.matrix.DoubleMatrix2D values, java.lang.String name, int[] labels) throws java.io.IOException
writer
- the MatlabWriter to write tovalues
- an n x 3 matrix containing the data to plotname
- the variable name to write tolabels
- the classes for each data pointjava.io.IOException
public static void exportScatterPlot3D(MatlabWriter writer, cern.colt.matrix.DoubleMatrix2D values, java.lang.String name, int[] labels) throws java.io.IOException
writer
- the MatlabWriter to write tovalues
- an n x 3 matrix containing the data to plotname
- the variable name to write tolabels
- the classes for each data pointjava.io.IOException