create a matlab script file so that it loads a new configuration file and replace hte existing one in a simulink model
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
FOR NEW CONFIG FILE IN SIMULINK.I know we can do it manually but i would like a matlab script
0 commentaires
Réponses (1)
Fangjun Jiang
le 29 Mai 2018
Save the configuration set from the sldemo_counters model to my_config_set.m.
% Open the sldemo_counters model
sldemo_counters
% Save the active configuration set to my_config_set.m
Simulink.BlockDiagram.saveActiveConfigSet('sldemo_counters', 'my_config_set.m')
Load the configuration set from my_config_set.m, associate it with the vdp model, and make it the active configuration set.
% Open the vdp model
vdp
% Load the configuration set from my_config_set.m, making it the active
% configuration set for vdp.
Simulink.BlockDiagram.loadActiveConfigSet('vdp', 'my_config_set.m')
Voir également
Catégories
En savoir plus sur Model Configuration Sets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!