1 Star 0 Fork 25

Charsly/toto_1

forked from ShiboJiang/toto 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
clear_resolve.m 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
ShiboJiang 提交于 2017-11-29 15:49 . 更新 clear_resolve.m
%------------------------------------------------------------------------------
% Simulink scrip for resolve to signals.
% MATLAB version: R2017a
% Author : Shibo Jiang
% Version : 0.1
% Instructions :
%------------------------------------------------------------------------------
function clear_resolve_result = clear_resolve()
paraModel = bdroot;
% Original matalb version is R2017a
% 检查Matlab版本是否为R202017a
CorrectVersion_win = '9.2.0.556344 (R2017a)'; % windows
CorrectVersion_linux = '9.2.0.538062 (R2017a)'; % linux
CurrentVersion = version;
if 1 ~= bitor(strcmp(CorrectVersion_win, CurrentVersion),...
strcmp(CorrectVersion_linux, CurrentVersion))
warning('Matlab version mismatch, this scrip should be used for Matlab R2017a');
end
% Original environment character encoding: GBK
% 脚本编码环境是否为GBK
% if ~strcmpi(get_param(0, 'CharacterEncoding'), 'GBK')
% warning('Simulink:EncodingUnMatched', 'The target character...
% encoding (%s) is different from the original (%s).',...
% get_param(0, 'CharacterEncoding'), 'GBK');
% end
all_line = find_system(paraModel,'FindAll','on','type','line');
length_rs_line = length(all_line);
for i = 1:length_rs_line
try
set(all_line(i),'MustResolveToSignalObject',0);
catch
% do nothing
end
end
% report configurate results
clear_resolve_result = 'Clear resolve successful';
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wujinyuwuchao/toto_1.git
git@gitee.com:wujinyuwuchao/toto_1.git
wujinyuwuchao
toto_1
toto_1
master

搜索帮助