hysdel_old.m

来自「由matlab开发的hybrid系统的描述语言」· M 代码 · 共 48 行

M
48
字号
function hysdel_old(filename)% hysdel_old(filename)% THIS FILE GENERATES THE DEPRECATED MLD STRUCTURE 1.0% IT IS PROVIDED FOR BACKWARDS COMPATIBILITY.% % INPUT: % filename: the hysdel source %% OUTPUT:% filename.mat on disk %% REMARK:% the M-file <hout.m> contains the system in the new format. Use % load filename.mat if you want to access the system in the old format.% % (C) 2000--2002 by F.D. Torrisi, A. Bemporad, T. Geyer% Automatic Control Laboratory, ETH Zentrum, CH-8092 Zurich, Switzerland% torrisi|bemporad|geyer@aut.ee.ethz.ch%% see license.txt for the terms and conditions.% Removes extensionj=findstr(filename,'.');if ~isempty(j),    if strcmpi(filename(j(end):end),'.hys')        filename(j(end):end)=[];    endend% compileif isunix    hysdel_cmd = './hysdel';    eval(['!' hysdel_cmd ' <' filename '.hys' ' > hout.m']);else    hysdel_cmd = '.\hysdel.exe';    eval(['!' hysdel_cmd ' < ' filename '.hys' ' > hout.m']);end;        % execute HYSDEL output 'hout.m' to load the system Shout;    S = new2old(S);% write 'filename.mat'eval(['save ' filename]);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?