how to find differences in two simulink configuration settings using m-script
古いコメントを表示
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 件のコメント
Jakob Janecek
2015 年 5 月 20 日
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
2015 年 5 月 20 日
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!