% get the Link dictionary from the model
get_param(modelName,''DataDictionary');
% Link the dictionary to the model
set_param(modelName,'DataDictionary',dictionaryName);
同时,也可以使用
get_param(modelName,''EnableAccessToBaseWorkspace');
ans= 'off', 表示使用了sldd文件
相关的help文档
doc 以编程方式将数据存储到字典中(包含了从外部文件导入sldd,从.m文件导入sldd)
doc 管理模型版本并指定模型属性
