Simulink Reference |
 |
compare_model
Compare two models.
Syntax
compare_model('model1', 'model2', 0)
compare_model('model1', 'model2', 1)
Description
compare_model('model1', 'model2', 0) compares model1
and model2
and returns a cell array that details the differences between the two models. compare_model('model1', 'model2', 1) returns only the nongraphical differences between the models.
The cell array returned by this function contains a cell array for each item compared between the two models. Each item cell array contains the following cells:
Cell
|
Contents
|
1
|
Name of compared item in first model
|
2
|
Name of compared item in second model
|
3
|
Type of the compared item (e.g., block, subsystem, state, etc.)
|
4
|
Comparison result: d if the two items differ, s if they're the same, u if the item is unique
|
5
|
Handle of the parent of the first item
|
6
|
Handle of the first item
|
7
|
Handle of the parent of the second item
|
8
|
Handle of the second item
|
| close_system | | delete_block |  |