recover.m

来自「MATLAB在飞行动力学和控制中应用的工具」· M 代码 · 共 23 行

M
23
字号
function recover(systname)
%-------------------------------------------------------------------
% RECOVER('SFUNC') makes one call to the Simulink system SFUNC, to
% recover simulation results which are 'lost' due to a bug in
% Simulink version 1.2c (I don't know if this bug exists for newer
% versions of Simulink). This bug apparantly prevents results to
% be transferred to the Workspace when using 'To Workspace' blocks
% in graphical systems. Re-initializing the system helps restoring
% the 'lost' results, without repeating the simulation itself.
%-------------------------------------------------------------------

sfunctioncall = [systname,'([],[],[],0);'];
eval(sfunctioncall);

%------------------------------------------------------------------------------
% The FDC toolbox. Copyright Marc Rauw, 1994-2000.
% Last revision of this program: October 7, 1997.
%
% Revision history since October 7, 1997:
% =======================================
% October 7, 1997
%  - Editorial changes

⌨️ 快捷键说明

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