Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_matlab_filewrite Class Reference

#include <vnl_matlab_filewrite.h>

List of all members.

Public Methods

 vnl_matlab_filewrite (char const *file_name, char const *basename=0)
void write (double v, char const *variable_name=0)
void write (vnl_vector< double > const &v, char const *variable_name=0)
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)
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 Methods

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
 


Member Function Documentation

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

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

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

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

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

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

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

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

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. If no name is given, variables will be generated by appending 0,1,2 etc to the given basename.


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.

int vnl_matlab_filewrite::variable_int_ [protected]
 

Definition at line 51 of file vnl_matlab_filewrite.h.


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:13:33 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000