Compare Requirements Sets

You can use the Compare Revisions (Simulink) tool to compare differences between two requirements sets.

Compare Two .slreqx Simulink Requirements Sets

If you have two versions of a .slreqx Simulink® requirements set file, you can use the Simulink Compare Revisions (Simulink) tool to find any differences between the two files.

Select Both Files to Compare

  1. In the Current Folder pane of MATLAB®, or in the Project Files View of your Simulink project, select the first file for comparison.

  2. In the Current Folder pane of MATLAB, or in the Project Files View of your Simulink project, press Ctrl, and then click the second file for comparison.

  3. Right-click either file and select Compare Selected Files/Folders.

Select One File and Choose a Second File to Compare

  1. In the Current Folder pane of MATLAB, right-click first file and select Compare Against > Choose.

  2. Select the second file for comparison and select Simulink Requirements™ Comparison as the Comparison type.

The Simulink comparison tool shows the differences between the two .slreqx requirements sets.

The comparison shows which specific requirements in a requirement set changed, and which fields of each requirement changed.


The comparison tool only shows changes in saved .slreqx requirements sets. Changes in memory but not yet saved to file are not shown.

To open a requirements item being compared in the Requirements Editor, highlight the requirements item and click Highlight Now. The requirements item being compared on the right opens in the Requirements Editor. If you check Always Highlight, the Requirements Editor opens to the selected requirements item whenever you click on one.

Review Changes in Source-Controlled Files

If you use a separate change management tool to manage changes to your Simulink projects, you can use the Simulink comparison tool with your source-controlled Simulink Requirements files. For more information, see Compare Revisions (Simulink).

Was this topic helpful?