how to find differences in two simulink configuration settings using m-script
Show older comments
Hello,
I am comparing two simulink configuration settings using visdiff command. here is my code:
Simulink.BlockDiagram.saveActiveConfigSet(bdroot, 'active_config')
visdiff('active_config', 'standard_config')
when I type visdiff, its giving comparision report.
But what I need is, If I find any difference between config then I should say different configuation is active else its fine. This should be done using m-script.
3 Comments
Jakob Janecek
on 20 May 2015
I would just like to clarify what you are after. Would you like a function that compares config sets (or any variables) and just returns same/not-same as a result?
For example something like:
result = areSame('active_config', 'standard_config');
where the result is true or false?
If my understanding of your requirement is correct then there is no API to do this at the moment.
Jakob Janecek
on 20 May 2015
Thank you for clarifying the issue. Unfortunately there is no API available that makes this possible at the moment. The only way to view differences is, as you have already identified, to run visdiff which generates a comparison report.
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!