save_fit
PURPOSE 
SYNOPSIS 
function [cal_coeff,cal_stats,cal_stats_deep,max_idx,min_idx,idx_stats]=save_fit(coeff,stats,stats_deep,newbotco,cal_coeff,cal_stats,cal_stats_deep,max_idx,min_idx,idx_stats,counter_fit)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
- calibration_cond calibration_cond - Main conductivity calibration calling routine.
SOURCE CODE 
0001 function [cal_coeff,cal_stats,cal_stats_deep,max_idx,min_idx,idx_stats]=...
0002 save_fit(coeff,stats,stats_deep,newbotco,cal_coeff,cal_stats,cal_stats_deep,max_idx,min_idx,idx_stats,counter_fit)
0003 cal_coeff(counter_fit,2:length(coeff)+1)=coeff;
0004 cal_stats(counter_fit,2:4)=stats;
0005 cal_stats_deep(counter_fit,2:4)=stats_deep;
0006 good_data=length(find(finite(newbotco)==1));
0007 if good_data>length(max_idx)
0008 max_idx=find(finite(newbotco)==1);
0009 idx_stats(1,1)=length(max_idx);
0010 idx_stats(1,2)=counter_fit;
0011 end
0012 if good_data<length(min_idx)
0013 min_idx=find(finite(newbotco)==1);
0014 idx_stats(2,1)=length(min_idx);
0015 idx_stats(2,2)=counter_fit;
0016 end
0017 idx_stats;
0018 return
Generated on Fri 08-Oct-2004 11:57:17 by m2html © 2003