mdfSort

Create sorted copy of MDF-file

Description

example

sortedPath = mdfSort(UnsortedMDFFile,SortedMDFFile) creates a copy of an MDF-file with its data sorted according to ASAM standards for fast reading. If you get an error when trying to read an unsorted file, create a sorted file and read from that instead. The optional output argument, sortedPath, indicates the full path to the sorted file, including the file name.

Examples

collapse all

Create a sorted MDF-file and read its data.

sortedPath = mdfSort('UnsortedMDFFile.mf4','SortedMDFFile.mf4');
M = mdf('SortedMDFFile.mf4');
MD = read(M);

Input Arguments

collapse all

Original MDF-file without sorted data, specified as a string or character vector. Full and relative path names are allowed.

Example: 'UnsortedMDFFile.mf4'

Data Types: char | string

New copy of MDF-file with sorted data, specified as a string or character vector. Full and relative path names are allowed.

Example: 'SortedMDFFile.mf4'

Data Types: char | string

Output Arguments

collapse all

Full path to new file, returned as a character vector. The path includes the file name.

See Also

Functions

Introduced in R2019b