%EZhtMapText.m % HeatMap Text Field try indx=Exp(expN).Dexp(DexpN).spotIndx; l=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,5); k=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,3); r=Exp(expN).Dexp(DexpN).scan(scnN).plate.CFout(indx,4); try ll=num2str(l); if length(ll)>5,htl=ll(1:5);else htl=ll;end if ~isempty(htl), htl=strcat('_L=',htl);else htl=' ';end catch htl=' '; end try kk=num2str(k); if length(kk)>5,htk=kk(1:5);else htk=kk;end if ~isempty(htk), htk=strcat('_K=',htk);else htk=' ';end catch htk=' '; end try rr=num2str(r); if length(rr)>5,htr=rr(1:5);else htr=rr;end if ~isempty(htr), htr=strcat('_r=',htr);else htr=' ';end catch htr=' '; end try n1=num2str(Exp(expN).HtMpIntN1(indx)); %num2str(Exp(expN).Dexp(DexpN).HtMpIntN1(indx)); if length(n1)>5,N1=n1(1:5);else N1=n1; end if ~isempty(N1), htN1=strcat('_N1=',N1);else htN1=' ';end catch htN1=' '; end try n2=num2str(Exp(expN).HtMpIntN2(indx)); %num2str(Exp(expN).Dexp(DexpN).HtMpIntN2(indx)); if length(n2)>5,N2=n2(1:5);else N2=n2; end if ~isempty(N2), htN2=strcat('_N2=',N2);else htN2=' ';end %htN2=strcat('_N2=',N2); catch htN2=' '; end try if htTog==0 || htTog> 2 htmapStr=strcat(htl, htN1,htN2) if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end end catch end try if htTog==1 htmapStr=htk %strcat(htl, htN1,htN2) if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end end catch end try if htTog==2 htmapStr=htr %strcat(htl, htN1,htN2) if expN==1,set(ghandles.HtMapVals1,'string',htmapStr);end if expN==2,set(ghandles.HtMapVals2,'string',htmapStr);end if expN==3,set(ghandles.HtMapVals3,'string',htmapStr);end end catch end catch msg='No spot selected (indx=Exp(expN).Dexp(DexpN).spotIndx)' end