add_suppress_cb

PURPOSE ^

ADD_SUPPRESS_CB is responsible for adding or suppressing scans.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 ADD_SUPPRESS_CB is responsible for adding or suppressing scans.
 
 ADD_SUPPRESS_CB can be used to add or remove scans from the calibration
 data in order to improve the calibration results.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % ADD_SUPPRESS_CB is responsible for adding or suppressing scans.
0002 %
0003 % ADD_SUPPRESS_CB can be used to add or remove scans from the calibration
0004 % data in order to improve the calibration results.
0005 
0006 % check inputs
0007 if ~exist('selectionnumbers','var')
0008     disp('Boards have not been extracted.');
0009     return;
0010 end
0011 
0012 % display
0013 disp('Active scans are:');
0014 disp(selectionnumbers);
0015 addsupnos=input('Select the numbers do you want to add/suppress ([]=None):');
0016 
0017 if ~isempty(addsupnos)
0018     for cntr=1:length(addsupnos)
0019         ind=find(selectionnumbers==addsupnos(cntr),1);
0020         if isempty(ind)
0021             selectionnumbers=[selectionnumbers,addsupnos(cntr)];
0022         else
0023             selectionnumbers(ind)=[];
0024         end
0025     end
0026 
0027     selectionnumbers=sort(selectionnumbers);
0028     dispboardpts(angleVector,rangeMatrix,clstrs,boardclstrs,selectionnumbers);
0029     disp('Rerun calibration.');
0030     % clear calib data to keep selnos and delta at sync
0031     clear delta;
0032     clear phi;
0033 end

Generated on Thu 08-Apr-2010 14:35:09 by m2html © 2005