EZhtMapText.m 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %EZhtMapText.m
  2. % HeatMap Text Field
  3. try
  4. indx=Exp(expN).Dexp(DexpN).spotIndx;
  5. l=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,5);
  6. k=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,3);
  7. r=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,4);
  8. try
  9. ll=num2str(l);
  10. if length(ll)>5,htl=ll(1:5);else htl=ll;end
  11. if ~isempty(htl), htl=strcat('_L=',htl);else htl=' ';end
  12. catch
  13. htl=' ';
  14. end
  15. try
  16. kk=num2str(k);
  17. if length(kk)>5,htk=kk(1:5);else htk=kk;end
  18. if ~isempty(htk), htk=strcat('_K=',htk);else htk=' ';end
  19. catch
  20. htk=' ';
  21. end
  22. try
  23. rr=num2str(r);
  24. if length(rr)>5,htr=rr(1:5);else htr=rr;end
  25. if ~isempty(htr), htr=strcat('_r=',htr);else htr=' ';end
  26. catch
  27. htr=' ';
  28. end
  29. try
  30. n1=num2str(Exp(expN).HtMpIntN1(indx)); %num2str(Exp(expN).Dexp(DexpN).HtMpIntN1(indx));
  31. if length(n1)>5,N1=n1(1:5);else N1=n1; end
  32. if ~isempty(N1), htN1=strcat('_N1=',N1);else htN1=' ';end
  33. catch
  34. htN1=' ';
  35. end
  36. try
  37. n2=num2str(Exp(expN).HtMpIntN2(indx)); %num2str(Exp(expN).Dexp(DexpN).HtMpIntN2(indx));
  38. if length(n2)>5,N2=n2(1:5);else N2=n2; end
  39. if ~isempty(N2), htN2=strcat('_N2=',N2);else htN2=' ';end %htN2=strcat('_N2=',N2);
  40. catch
  41. htN2=' ';
  42. end
  43. try
  44. if htTog==0 || htTog> 2
  45. htmapStr=strcat(htl, htN1,htN2)
  46. if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end
  47. if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end
  48. if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end
  49. end
  50. catch
  51. end
  52. try
  53. if htTog==1
  54. htmapStr=htk %strcat(htl, htN1,htN2)
  55. if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end
  56. if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end
  57. if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end
  58. end
  59. catch
  60. end
  61. try
  62. if htTog==2
  63. htmapStr=htr %strcat(htl, htN1,htN2)
  64. if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end
  65. if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end
  66. if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end
  67. end
  68. catch
  69. end
  70. catch
  71. msg='No spot selected (indx=Exp(expN).Dexp(DexpN).spotIndx)'
  72. end