From: Erik Tang on 20 Jan 2010 22:43 I am using pointLocation and input 117 points to be located. For some reason pointLocation is only returning me 116 entries instead of 117. If I have the exact same line of code one line above the othe in my m-file, pointLocation will return one with 117 entries and another with 116! ex (size of x and y are both 117x1): pointLoc=pointLocation(dt,[x(:,i-(a-2)) y(:,i-(a-2))]); pointLoc2=pointLocation(dt,[x(:,i-(a-2)) y(:,i-(a-2))]); pointLoc will be 116x1 pointLoc2 will be 117x1 or switched (pointLoc2 is 116x1, pointLoc is 117x1), they both never return the true 117x1 entries. If pointLoc is ran in the command window a 117x1 array is returned. Has anyone has this problem? Thank You.
From: Erik Tang on 20 Jan 2010 23:50 Ignore post, problem fixed, my own error sorry for the inconvenience!
|
Pages: 1 Prev: Need help with running javascript in MATLAB Next: Filter bank spectrum sensing |