www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgcaloutput/Simple_M_file.m
function out = Simple_M_file(obj,opt) %SIMPLE_M_FILE Export to Simple MATLAB file. % Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. % Check inputs narginchk(1,2) if nargin == 2 if strcmpi(opt, 'getname') out = 'Simple MATLAB file'; return else error(message('mbc:cgcalinput:InvalidArgument14')) end end % Get calibration interface if isa(obj.filename, 'calibrationdata.mbc2minterface') cal = obj.filename; % interface can be set via the filename property for automated testing ok = true; else [cal, ok] = cgmbc2minterface('w'); end % Abort if failed if ~ok out = false; return end % Export calibration try pm = cgcalgui.progressmanager('Job', 'Export from CAGE'); pCgcaloutputSetCalibration(cal, obj.ptrlist, false, pm); pm.stop; cal.commit; out = true; catch pm.stop; out = false; end