Main Content

mdfFinalize

Finalize MDF-file by ASAM standards

Description

example

mdfFinalize(UnfinalizedMDFFile) sorts and finalizes the specified MDF-file according to ASAM standards, and overwrites the original file.

example

mdfFinalize(UnfinalizedMDFFile,FinalizedMDFFile) creates a sorted, finalized copy of the MDF-file with the specified name, FinalizedMDFFile.

example

finalizedPath = mdfFinalize(___) returns an output argument, finalizedPath, indicating the full path to the sorted, finalized file, including the file name.

Examples

collapse all

Finalize an MDF-file, overwriting the original.

finalizedPath = mdfFinalize('MDFFile.mf4');
mdfObj = mdf(finalizedPath);

Finalize an MDF-file, creating a separate copy from the original.

finalizedPath = mdfFinalize('UnfinalizedMDFFile.mf4','FinalizedMDFFile.mf4');
mdfObj = mdf(finalizedPath);

Input Arguments

collapse all

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

Example: 'UnfinalizedMDFFile.mf4'

Data Types: char | string

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

Example: 'FinalizedMDFFile.mf4'

Data Types: char | string

Output Arguments

collapse all

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

Version History

Introduced in R2021b

See Also

Functions