MATLAB: How to compare two configuration sets in Simulink 7.6 (R2010b)

simulink

I have two models referencing different configuration sets. I want to be able to compare them. How do I do this?

Best Answer

In order to compare the configuration sets we can first export them to M-files and then use the built in MATLAB Compare functionality, VISDIFF. “Simulink.BlockDiagram.saveActiveConfigSet('model', 'filename')” saves the active configuration set of a model to an M-file.
For example, we can export the configuration set for the shipping demo VDP with the following commands:
>> vdp
>> Simulink.BlockDiagram.saveActiveConfigSet(bdroot, 'filename')
After exporting the two active configuration sets to M-files they can be compared with the following command:
visdiff('fname1', 'fname2')