how to find differences in two simulink configuration settings using m-script
Afficher commentaires plus anciens
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 commentaires
Jakob Janecek
le 20 Mai 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
le 20 Mai 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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!