In file DVector.cpp:

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

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

Documentation

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

Notice that this should be used for storage a (really) large vectors, 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:
2-5-2001


Back DIVA Reference Manual The DIVA-Site