Comparison of two requirements versions

16 views (last 30 days)
Priyesh Rabadiya
Priyesh Rabadiya on 21 Nov 2025 at 9:44
Answered: Josh Kahn on 1 Dec 2025 at 18:49
I am facing an issue while comparing two requirement versions that is imported from excel file into requirement toolbox and saved as "slreq" files. Both the files has same number of columns. lets say there 100 rows mentioning requirements in "req_v1.xlsx" out of that approx 10 rows has been modified in "req_v2.xlsx". I have got slreqx files by importing these files from respected xlsx files using Requirement toolbox. I want to see the modifications in those 10 rows keeping side by side. For that I am using option "Compare Selected Files/Folders".
Now the problem is - comparison tool shows all 100 lines has been changed considering it as whole set of 100 rows as one. Ideally it should show 90 lines as same and 10 lines are different putting side by side. Does anybody have idea to solve these issue?
P.S. content of other 90 rows are exactly same, no change in format also.

Answers (1)

Josh Kahn
Josh Kahn on 1 Dec 2025 at 18:49
You're going to want to leave the "Allow updates from External Source" option selected when you import the requirements:
Then, update the original spreadsheet and go into Requirements Toolbox, select the requirement set, then press the "Update" button.
You can then use the MATLAB Comparison tool to compare the updated slreqx with the original slreqx (or even easier, if using git, you can compare the updated requirement set to it's ancestor in source control).
Does this solve your problem?
Josh

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!