필터 지우기
필터 지우기

create a matlab script file so that it loads a new configuration file and replace hte existing one in a simulink model

조회 수: 2 (최근 30일)
FOR NEW CONFIG FILE IN SIMULINK.I know we can do it manually but i would like a matlab script

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 5월 29일
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')
  댓글 수: 1
GIRIDHAR ASV
GIRIDHAR ASV 2018년 5월 29일
Hi Fangjun Jiang ,
Thank you for the response. It was helpful but does is dletes the already existng config file or makes it present and inactive.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Model Configuration Sets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by