From bug-request at octave dot org Wed Jan 5 10:24:26 2005 Subject: octave bugs version 2.1.50 From: Mauricio Oliveira To: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 4 Jan 2005 19:33:58 -0600 ======================================================= 1st bug I try to run the interp2.m function and it gave me the same results as typing "help find". you just have to type >> interp2(1,1) this is the results ------------------------------------------------- *** find: - Loadable Function: find (X) Return a vector of indices of nonzero elements of a matrix. To obtain a single index for each matrix element, Octave pretends that the columns of a matrix form one long vector (like Fortran arrays are stored). For example, find (eye (2)) => [ 1; 4 ] If two outputs are requested, `find' returns the row and column indices of nonzero elements of a matrix. For example, [i, j] = find (2 * eye (2)) => i = [ 1; 2 ] => j = [ 1; 2 ] If three outputs are requested, `find' also returns a vector containing the nonzero values. For example, [i, j, v] = find (3 * eye (2)) => i = [ 1; 2 ] => j = [ 1; 2 ] => v = [ 3; 3 ] Additional help for built-in functions, operators, and variables is available in the on-line version of the manual. Use the command `help -i ' to search the manual index. Help and information about Octave is also available on the WWW at http://www.octave.org and via the help-octave at bevo dot che dot wisc dot edu mailing list. error: string type invalid as index value error: evaluating postfix operator `'' near line 120, column 24 error: evaluating assignment expression near line 120, column 8 error: called from `interp2' in file `/opt/octave/share/octave/2.1.50/site/m/octave-forge/general/interp2.m' ------------------------------------------------ there are 2 lines on the interp2.m file that needs to be modified line 121 and 129 approx. says the following xidx = o([find (n > xtlen)])'; and yidx = o([find (n > ytlen)]); these lines don't work. to fix it, you need to delete the space after "find" the new lines should read it xidx = o([find(n > xtlen)])'; yidx = o([find(n > ytlen)]); ============================================================== bug 2 When I try to run griddata the it gives the following error message >> griddata(1,2,3,2,3) error: `delaunayn' undefined near line 51 column 13 error: evaluating assignment expression near line 51, column 11 error: evaluating if command near line 50, column 5 error: evaluating if command near line 49, column 3 error: called from `delaunay' in file `/opt/octave/share/octave/2.1.50/site/m/octave-forge/geometry/delaunay.m' error: evaluating assignment expression near line 52, column 6 error: called from `griddata' in file `/octave_files/griddata.m' griddata.m calls delaunay.m which calls delaunayn.m but this file is not included with Octave. does any one know how to get delaunayn.m file? thanks -- Mauricio Oliveira Electrical Engineer www.nova-sol.com (808) 441-3673 tel (808) 441-3601 fax mauricio dot oliveira at nova-sol dot com ------------------------------------------------------------- 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 -------------------------------------------------------------