EZdiagRFsSheetwImport.m 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. % Diagnostic sheet called by EZvInitLoad.m, EZexpSel.m ?EZinteractDev_.m?
  2. global Exp
  3. intLfilename1=fullfile(Exp(expN).resDir,'PrintResults','!RFsDiagnostics.txt');
  4. fid=fopen(RFdiagnostic,'w');
  5. ln=1;
  6. fprintf(fid,'%d\t',ln);
  7. fprintf(fid,'%s\ExpName:::','Reference Diagnostic Values');
  8. % Will need to reverse the equals pulling data from the Exp source as needed
  9. % to populate the printout diagnostice sheet.
  10. for d=1:DMnum
  11. fprintf(fid,'RF Name\Median\Mean\STD\Max\Min');
  12. fprintf(fid,'\n')
  13. fprintf(fid,'\n')
  14. RFmd1pos= Exp(expN).RFmd1indx(d+1);
  15. RF1mp= Exp(expN).RFmd1pltN;
  16. std1= Exp(expN).std1(:);
  17. mean1= Exp(expN).mean1(:);
  18. min1= Exp(expN).min1(:);
  19. max1= Exp(expN).max1(:);
  20. RFmd2pos= Exp(expN).RFmd2indx(d+1);
  21. RF2mp= Exp(expN).RFmd2pltN;
  22. std2= Exp(expN).std2(d+1);
  23. mean2= Exp(expN).mean2(d+1);
  24. min2= Exp(expN).min2(d,dMPs(mm));
  25. max2= Exp(expN).max2(d,dMPs(mm));
  26. nzPosIndxDG= Exp(expN).RFmdGindx(d);
  27. dMP= Exp(expN).RFmdGpltN(d);
  28. rf1scNdisp= Exp(expN).RFmdGscanN(d);
  29. mvalsDGx= Exp(expN).RFmedianG(d);
  30. RFstdGx= Exp(expN).RFstdG(d);
  31. RFmeanGx= Exp(expN).RFmeanG(d);
  32. RFmeanG=Exp(expN).minG(d,dMPs(mm));
  33. maxG= Exp(expN).maxG(d,dMPs(mm));
  34. minG= Exp(expN).minG(d,dMPs(mm));
  35. end
  36. for mm=1:length(dMPs)
  37. for d=1:DMnum
  38. RFmd1posD= Exp(expN).RFmdPindx(d,dMPs(mm));
  39. dMP= Exp(expN).RFmdPpltN(d,dMPs(mm)); % This is a storage of the MasterPlate used NOT the ScanPlate? WeMight wish to store the ScanPlateNumber also???
  40. rf1scNdisp= Exp(expN).RFmdPscanN(d,dMPs(mm));
  41. mval1Disp= Exp(expN).RFmedianP(d,dMPs(mm));
  42. std1Disp= Exp(expN).stdP(d,dMPs(mm));
  43. mean1Disp= Exp(expN).meanP(d,dMPs(mm));
  44. minDisp= Exp(expN).minP(d,dMPs(mm));
  45. maxDisp= Exp(expN).maxP(d,dMPs(mm));
  46. end
  47. end
  48. %{
  49. RFcombValList= cat(1,medValList1{d+1},medValList2{d+1});
  50. rf12mean(RFcombValList)= Exp(expN).RFmean(d+1);
  51. std12(RFcombValList)= Exp(expN).RFstd(d+1);
  52. Exp(expN).RFmin(d+1)=min(RFcombValList);
  53. Exp(expN).RFmax(d+1)=max(RFcombValList);
  54. %}
  55. fclose(fid)