ILNumerics.Net
MatFile Class

ILNumerics.Net - numeric computing and plotting for .NET

ILNumericsMatFile
ILNumerics.Net - numeric computing for .NET
Matlab .mat file wrapper class (deprecated)
Declaration Syntax
C#Visual BasicVisual C++
public sealed class MatFile
Public NotInheritable Class MatFile
public ref class MatFile sealed
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
MatFile()()()
MatFile(String)
create MatFile object from existing mat file

MatFile(array<ILBaseArray>[]()[])
Create MatFile object from ILBaseArray

MatFile()()()
create empty MatFile object

Arrays
Arrays stored in this mat file

Convert2ByteArray(Array)
Convert2CharArray(Array)
Convert2DoubleArray(Array)
Convert2Int16Array(Array)
Convert2Int32Array(Array)
Convert2Int64Array(Array)
Convert2Logical(Array, Int32%)
Convert2SingleArray(Array)
Convert2UInt16Array(Array)
Convert2UInt32Array(Array)
Convert2UInt64Array(Array)
createDimensionSubelement(ILBaseArray)
createNameSubelement(ILBaseArray, Int32%, array<Byte>[]()[]%)
create name subelement for Matfile storage - padded to 8 byte border

Filelocation
Path to mat file, if this object was created from an existing mat file.

getElementClass(ILBaseArray)
get mat file array class type corresponding to this arra element type

getElementLength(ILBaseArray)
get storage length of inner array elements

headerFromFile
Item[([(String])])
Get or set arrays to the MatFile array container

Keys
list all key names currently stored with arrays

m_data
m_filename
miSIZE_DOUBLE
miSIZE_INT16
miSIZE_INT32
miSIZE_INT8
miSIZE_SINGLE
miSIZE_UINT16
miSIZE_UINT32
miSIZE_UINT8
miSIZE_UTF32
mtFLAG_COMPLEX
mtFLAG_GLOBAL
mtFLAG_LOGICAL
mtFLAG_TYPE
mxCELL_CLASS
mxCHAR_CLASS
mxDOUBLE_CLASS
mxFUNCTION_CLASS
mxINT16_CLASS
mxINT32_CLASS
mxINT64_CLASS
mxINT8_CLASS
mxOBJECT_CLASS
mxOPAQUE_CLASS
mxSINGLE_CLASS
mxSPARSE_CLASS
mxSTRUCT_CLASS
mxUINT16_CLASS
mxUINT32_CLASS
mxUINT64_CLASS
mxUINT8_CLASS
mxUNKNOWN_CLASS
read_header(BinaryReader)
read_miMATRIX(BinaryReader)
read ONE array (arbitrary dimensions/type) from MAT file

readElementGeneric(BinaryReader, MatFileType, Array%, Int32%)
readElementGeneric(BinaryReader, MatFileType, Array%, Int32%, Int32)
read array of supported matlab data types

ReservedKeywords
list of keywords which Matlab disallows for variable names

sizeOf(MatFileType)
size of single elements stored in Matlab's *.mat files

typeToString(MatFileType)
Convert MatFileType enumeration member to string representation

write(BinaryWriter)
Write(Stream)
Write this mat file into (binary) stream

Remarks
This class can read and write Matlab .mat files version 6! All numeric array types are supported. The reading and writing of Matlab cell arrays is not supported yet.

This class is deprecated and will be removed in a future release. Use the alias ILMatFile instead! MatFile is here for backward compatibility only!

Inheritance Hierarchy
Object
MatFile

Assembly: ILNumerics.Net (Module: ILNumerics.Net) Version: 1.3.13.0 (0.9.29.0)