Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 446: Line 446:
kx = parseInt(kx);
kx = parseInt(kx);
ky = parseInt(ky);
ky = parseInt(ky);
-
if(!thisdataz[kx+(ky+1)*thisdatax.length])
+
var tli = kx+ky*thisdatax.length;
 +
var tri = kx+ky*thisdatax.length+1;
 +
var bli = kx+(ky+1)*thisdatax.length;
 +
var bri = kx+1+(ky+1)*thisdatax.length;
 +
if(!thisdataz[bli])
{
{
alert("Porblem!\nkx:" + kx + "\nky:" + ky + "\nkx is a "+typeof(kx) + "\nky is a" +typeof(ky) + "\nindex:" + kx+(ky+1)*thisdatax.length+"\nz:"+thisdataz[kx+(ky+1)*thisdatax.length]);
alert("Porblem!\nkx:" + kx + "\nky:" + ky + "\nkx is a "+typeof(kx) + "\nky is a" +typeof(ky) + "\nindex:" + kx+(ky+1)*thisdatax.length+"\nz:"+thisdataz[kx+(ky+1)*thisdatax.length]);
}
}
-
alert(thisdataz.length);
 
-
alert(thisdataz[4]);
 
thisz = interp2(thisdatax[kx],  
thisz = interp2(thisdatax[kx],  
thisdatay[ky],  
thisdatay[ky],  

Revision as of 04:45, 26 September 2011