From bug-request at octave dot org Mon Dec 20 21:27:21 2004 Subject: FW: Problem with end of vector-problem #2 solved From: Joe Koski To: "bug at octave dot org" Date: Mon, 20 Dec 2004 20:21:11 -0600 John The patch that you sent also fixes all the problems with the actual routine, not just the test routine. Thanks. My other problem: octave:1> run_drop_emd_online Enter name of input file: A-3_572-ALG-BIAS.txt size_x = 1 12500 size_t = 1 12500 vel_impact = 16.447 error: invalid XXX FIXME XXX index = 12600 error: evaluating argument list element number 1 error: evaluating if command near line 284, column 11 error: evaluating if command near line 282, column 4 error: evaluating if command near line 277, column 2 error: evaluating for command near line 274, column 7 error: evaluating while command near line 273, column 5 error: evaluating for command near line 262, column 3 error: evaluating while command near line 260, column 1 error: called from `emd_online' in file `/Users/jakoski/Codes/EMD MatLab Routines/emd_online.m' error: called from `run_drop_emd_online' in file `/Users/jakoski/Codes/EMD MatLab Routines/run_drop_emd_online.m' was solved by trial and error by printing various variables until the culprit appeared. (The script was calculating an index outside of the range of indices. The parameter that had the problem was a matrix named finps, and finps(1,1) was 12600 when the array length was only 12500. A min function in an earlier statement fixed that, and all test cases now work well.) The "error: invalid XXX FIXME XXX index = 12600" gave me a clue, but also confused me. It made me think that maybe it was octave that had the problem. Maybe just a blanket statement something like "index out of range" would be less confusing there. Just a thought. Thanks again. Joe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------