www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregtools/@MBrowser/Export.m

    function Export(h)
% EXPORT  Export node information
%
%   Export(h)
%
%

%  Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Created 5/12/2000

if h.GUIExists && ~h.GUILocked
   h.GUILocked=true;
   
   p=h.CurrentNode;
   
   % Check to see if we have asked to export a validated model
   if ~any(p.hasBestExportModel)
      errordlg('You must validate the model before exporting','Error','modal');
   else
      xreg_ExportTool(p);
   end
   h.GUILocked=false;
end