MatlabFile.ReadVector Method

Definition

Namespace: Extreme.Data.Matlab
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

ReadVector<T>(Stream, Boolean) Reads a vector from the specified Matlab® data file.
ReadVector<T>(String, Boolean) Reads a vector from the specified Matlab® data file.
ReadVector<T>(Stream, String, Boolean) Reads the vector with the specified name from a stream.
ReadVector<T>(String, String, Boolean) Reads the vector with the specified name from a Matlab® data file.

MatlabFile.ReadVector<T>(Stream, Boolean)

Reads a vector from the specified Matlab® data file.
C#
public static Vector<T> ReadVector<T>(
	Stream stream,
	bool strict = true
)

Parameters

stream  Stream
The stream to read from.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Vector<T>
The vector that was read from the stream.

MatlabFile.ReadVector<T>(String, Boolean)

Reads a vector from the specified Matlab® data file.
C#
public static Vector<T> ReadVector<T>(
	string path,
	bool strict = true
)

Parameters

path  String
The file to read from.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Vector<T>
The vector that was read from the file.

MatlabFile.ReadVector<T>(Stream, String, Boolean)

Reads the vector with the specified name from a stream.
C#
public static Vector<T> ReadVector<T>(
	Stream stream,
	string name,
	bool strict = true
)

Parameters

stream  Stream
The stream to read from.
name  String
The name of the vector to read.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Vector<T>
The vector that was read from the stream.

MatlabFile.ReadVector<T>(String, String, Boolean)

Reads the vector with the specified name from a Matlab® data file.
C#
public static Vector<T> ReadVector<T>(
	string path,
	string name,
	bool strict = true
)

Parameters

path  String
The file to read from.
name  String
The name of the vector to read.
strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true, the default), or whether conversions are allowed (false).

Type Parameters

T

Return Value

Vector<T>
The vector that was read from the file.

See Also