Matlab修改Model config

namelist = get_param(Simulink.allBlockDiagrams(),'Name');

if isempty(namelist)

return;

end

if ischar(namelist)

namelist={namelist};

end

for ii=1:length(namelist)

activeConfigObj = getActiveConfigSet(namelist{ii});

components = activeConfigObj.Components;

if strcmp('ModelAdvisor.ConfigsetCC',class(components(end)))

activeConfigObj.Components(end).remove;

% attachConfigSet(namelist{ii},activeConfigObj);

% set_param(activeConfigObj,'Name','VdpConfigRef')

% setActiveConfigSet(namelist{ii},'VdpConfigRef');

end

clear activeConfigObj components

end

这是将模型检查的Component删除

相关推荐
CappuccinoRose1 天前
MATLAB学习文档(二十四)
学习·数学建模·matlab·数据可视化
茜茜西西CeCe1 天前
数字图像处理-图像增强(2)
人工智能·算法·计算机视觉·matlab·数字图像处理·图像增强·陷波滤波器
Evand J2 天前
【MATLAB例程】基于USBL和DVL的线性回归误差补偿,对USBL和DVL导航数据进行相互补偿,提高定位精度,附代码下载链接
开发语言·matlab·线性回归·水下定位·usbl·dvl
mjhcsp2 天前
MATLAB 疑难问题诊疗:从常见报错到深度优化的全流程指南
开发语言·matlab
Dave.B2 天前
MatGeom——一个基于 MATLAB 的几何处理库
matlab
88号技师2 天前
2025年8月SCI-汉尼拔·巴卡优化算法Hannibal Barca optimizer-附Matlab免费代码
开发语言·人工智能·算法·数学建模·matlab·优化算法
机器学习之心HML3 天前
MATLAB基于GWO-BP神经网络对某拨叉件锻造金属流动性的参数分析
开发语言·神经网络·matlab
珞瑜·3 天前
MATLAB2025B版本新特点
matlab
信息快讯4 天前
“COMSOL+MATLAB光子学仿真:从入门到精通,掌握多物理场建模
开发语言·matlab·comsol·光学工程
北山太湖4 天前
Matlab安装硬件支持包
开发语言·matlab