Simulink.getFileChecksum
Checksum of file
Description
returns
the checksum of the specified file, using the MD5 checksum algorithm.
Use the checksum to see if the file has changed compared to a previous
checksum. You can use checksums as part of an audit trail.checksum
= Simulink.getFileChecksum(filename
)
Use Simulink.getFileChecksum
to get a checksum
for any file. If the file contents do not change from one checksum
to the next, the checksum from Simulink.getFileChecksum
stays
the same. Otherwise, the checksum is different with each change to
the file contents.
For functional information on a model, use Simulink.BlockDiagram.getChecksum
instead. Simulink.BlockDiagram.getChecksum
looks
at the functional aspect of the model. If the functional aspect doesn't
change, then Simulink.BlockDiagram.getChecksum
returns
the same checksum.
For example, if you moved a block, the file contents are different
(measured by Simulink.getFileChecksum
) but the
function of the model is unchanged (measured by Simulink.BlockDiagram.getChecksum
).
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2014b