analyse_error_cb

PURPOSE ^

ANALYSE_ERROR_CB plots the error for each scan.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 ANALYSE_ERROR_CB plots the error for each scan.
 
 ANALYSE_ERROR_CB plots the error for each scan and can optionally be
 asked to display the selected laser points  from a scan. The user can
 then suppress the scan if the board extraction has produced undesirable
 results.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % ANALYSE_ERROR_CB plots the error for each scan.
0002 %
0003 % ANALYSE_ERROR_CB plots the error for each scan and can optionally be
0004 % asked to display the selected laser points  from a scan. The user can
0005 % then suppress the scan if the board extraction has produced undesirable
0006 % results.
0007 
0008 if ~exist('delta','var')
0009     disp('No Calibration Data.');
0010     return;
0011 end
0012 [rmserror,errorvec1,errorvec2]=geterror(Lpts,Nc,delta,phi,Lptsnos);
0013 disp('Total RMS error (in m):');
0014 disp(rmserror);
0015 figure;
0016 scatter(selectionnumbers,errorvec2(selectionnumbers),'+');
0017 xlabel('Scan Number');
0018 ylabel('RMS error (in metres)');
0019 title('RMS error for each scan');
0020 dispnos=input('Enter the number of scans you which to display ([]=none):');
0021 
0022 figure;
0023 for cntr=dispnos
0024     % make sure dispnos is within selectionnumbers
0025     if ~isempty(find(selectionnumbers==cntr,1))
0026         dispclstrscore(angleVector,rangeMatrix(cntr,:),clstrs(cntr,:));
0027         title(['Selected cluster is ',num2str(boardclstrs(cntr))]);
0028     end
0029     pause;
0030     clf;
0031 end
0032 close;

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