Model Comparison

Compare models to identify changes or merge differences between models

Review and merge changes in models, display original models, filter and save comparison results.

Functions

visdiffCompare two files or folders

Topics

About Simulink Model Comparison

Learn about selecting Simulink® models to compare, how to explore the differences, view the changes highlighted in the original models, and merge differences using three-way model merge or two-way merge.

Compare Simulink Models

Review and merge changes between models, display original models, filter and save comparison results.

Display Differences in Original Models

Control highlighting of differences in original models, and view changes in model configuration parameters.

Merge Simulink Models from the Comparison Report

Resolve conflicts using three-way model merge, two-way merge, and by merging MATLAB® Function block code.

Export, Print, and Save Model Comparison Results

Archive comparison reports in printable reports or zip files, or export results to the workspace.

Comparing Models with Identical Names

Understand how Simulink creates temporary copies to have two models of the same name in memory at the same time, and how to control prompts to close files.

Work with Referenced Models and Library Links

The comparison report does not include changes to any referenced models or linked libraries. To examine your whole hierarchy, use a project instead.

Compare Project or Model Templates

Compare model or project templates (SLTX files) and create a comparison report.

Featured Examples