In file DMatrix.cpp:

DIVAMatrixExport void CDMatrix::FromMatlab(const CDString& sFilename, const CDString& sName)

Reads a matrix from disk in MatLab (.m) format.

Documentation

Reads a matrix from disk in MatLab (.m) format into 'this'.

Notice that this should be used for storage a (really) large matrices, due to the computational and i/o overhead induced by the simple MatLab text format.

Also, remember that MatLab can't read (.m) files with lines longer than 4096 bytes.

If no communication with MatLab is needed, but merely to/from disk functionality within a DIVA program, it is suggested to use the fast binary i/o methods ToFile() and FromFile().

Returns:
Nothing.
Parameters:
sFilename - Input file name.
sName - The name to search for (and load) inside the matlab file.
Author:
Henrik Aanęs
Version:
14-7-1999


Back DIVA Reference Manual The DIVA-Site