⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 esci.m

📁 vTools is a toolbox for Matlab 5.3 developed within the Department of Electrical Systems and A
💻 M
字号:
% All'uscita di MvTools viene richiesto se un eventuale nuovo modello
% debba essere salvato o meno altrimenti viene chiuso il programma
% ripristinando il workspace e la directory di lavoro precedenti
% alla chiamata di MvTools stesso
%
%
% Massimo Davini 28/05/99 --- revised 17/02/00

% modified by giampy, dec 03, 
% does not clear the workspace anymore only clears the stack variable
% the tag is now MvMain

global stack;
if ~isfield(stack.general,'M_flag') stack.general.M_flag=0; end
   
creato=stack.general.M_flag;

if isempty(creato)|(~isempty(creato)&(creato==0))
   
   clf;drawnow;
   delete(gcf);drawnow;
   
   if ~isempty(find_system('name','Closed_Loop_System'))
     close_system('Closed_Loop_System',0);
   end;
   if isfield(stack.general,'adv_flag')
   advanced_flag=stack.general.adv_flag;
   save(which('advanced.mat'),'advanced_flag','-v4');
   end;
   
   mvt_path=which('mvtools.m');
   mvt_path=mvt_path(1:length(mvt_path)-9);
   cd(mvt_path);
   
   cd(stack.general.old_path);
   clear creato advanced_flag mvt_path stack;
   
   warning on;
elseif (~isempty(creato)&(creato==1))
   %se 

⌨️ 快捷键说明

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