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')
Best Answer