Public Member Functions | Protected Member Functions | Protected Attributes
vnl_matlab_filewrite Class Reference

Code to perform MATLAB binary file operations. More...

#include <vnl_matlab_filewrite.h>

List of all members.

Public Member Functions

 vnl_matlab_filewrite (char const *file_name, char const *basename=0)
void write (double v, char const *variable_name=0)
 Add scalar/vector/matrix variable to the MAT file using specified variable name.
void write (vnl_vector< double > const &v, char const *variable_name=0)
 vector.
void write (vnl_vector< vcl_complex< double > > const &v, char const *variable_name=0)
void write (vnl_matrix< float > const &M, char const *variable_name=0)
 matrix.
void write (vnl_matrix< double > const &M, char const *variable_name=0)
void write (vnl_matrix< vcl_complex< float > > const &M, char const *variable_name=0)
void write (vnl_matrix< vcl_complex< double > > const &M, char const *variable_name=0)
void write (double const *const *M, int rows, int cols, char const *variable_name=0)

Protected Member Functions

vcl_string make_var_name (char const *variable_name)

Protected Attributes

vcl_string basename_
int variable_int_
vcl_fstream out_

Detailed Description

Code to perform MATLAB binary file operations.

vnl_matlab_filewrite is a collection of I/O functions for reading/writing matrices in the compact MATLAB binary format (.mat)

Definition at line 29 of file vnl_matlab_filewrite.h.


Constructor & Destructor Documentation

vnl_matlab_filewrite::vnl_matlab_filewrite ( char const *  file_name,
char const *  basename = 0 
)

Definition at line 18 of file vnl_matlab_filewrite.cxx.


Member Function Documentation

vcl_string vnl_matlab_filewrite::make_var_name ( char const *  variable_name) [protected]

Definition at line 27 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( double  v,
char const *  variable_name = 0 
)

Add scalar/vector/matrix variable to the MAT file using specified variable name.

scalar.

If no name is given, variables will be generated by appending 0,1,2 etc to the given basename.

Definition at line 41 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_vector< double > const &  v,
char const *  variable_name = 0 
)

vector.

Definition at line 47 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_vector< vcl_complex< double > > const &  v,
char const *  variable_name = 0 
)

Definition at line 52 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_matrix< float > const &  M,
char const *  variable_name = 0 
)

matrix.

Definition at line 58 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_matrix< double > const &  M,
char const *  variable_name = 0 
)

Definition at line 63 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_matrix< vcl_complex< float > > const &  M,
char const *  variable_name = 0 
)

Definition at line 68 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( vnl_matrix< vcl_complex< double > > const &  M,
char const *  variable_name = 0 
)

Definition at line 73 of file vnl_matlab_filewrite.cxx.

void vnl_matlab_filewrite::write ( double const *const *  M,
int  rows,
int  cols,
char const *  variable_name = 0 
)

Definition at line 78 of file vnl_matlab_filewrite.cxx.


Member Data Documentation

vcl_string vnl_matlab_filewrite::basename_ [protected]

Definition at line 50 of file vnl_matlab_filewrite.h.

vcl_fstream vnl_matlab_filewrite::out_ [protected]

Definition at line 52 of file vnl_matlab_filewrite.h.

Definition at line 51 of file vnl_matlab_filewrite.h.


The documentation for this class was generated from the following files: