Returns checksum of model
You can compute the checksum of model and compare it with an updated model checksum. You can also compare the checksum of a model with the checksum provided in the Simulink® Design Verifier™ analysis report.
Compare this checksum with the checksum in the Simulink Design Verifier analysis report by using:
open_system ('sldvdemo_cruise_control'); [checksum] = sldvchecksum('sldvdemo_cruise_control');
Open the same
sldvdemo_cruise_control model and make changes to
it. Save the updated model. Repeat the previous step to calculate the checksum, then
compare the checksums of the original model and the updated model.
model— Handle to model
Handle to a Simulink model, specified as a character vector or string scalar.
system— Handle to a component block
Handle to an atomic subsystem or Model block in a Simulink model, specified as a character vector or string scalar.
checksum— 128-bit checksum value
128-bit checksum of the model, returned as a character vector.
The checksum of the model does not change if:
The model contains MATLAB System blocks and you modify the source code of the System object™ to which the MATLAB System blocks refer.
You modify the custom block replacement rules for the model.
The checksum of a single model may not match in different MATLAB® versions due to internal changes.