The following Matlab project contains the source code and Matlab examples used for md5 or sha hash for array, struct, cell or file .
DATAHASH - Checksum for Matlab array, struct, cell or file
Hash = DataHash(Data, Opt)
Data: Array of built-in types (U)INT8/16/32/64, SINGLE, DOUBLE (real or complex)
CHAR, LOGICAL, CELL, STRUCT (scalar or array, nested), function_handle.