[OctDev] strange octcdf behavior

2008-06-25 Thread GAIL
I have a netcdf file1.nc which I duplicated using ncks file1.nc file2.nc Now I do octave:1> nc1 = netcdf("file1.nc", "r") ; octave:2> nc2 = netcdf("file2.nc", "r") ; octave:3> [nc1{"lsp"}(:)(17,6,30,5,7) nc2{"lsp"}(:)(17,6,30,5,7)] ans = 0 -18942 Strange isn't it? G.

[OctDev] prctile(x, [a b]) returns column instead of row vector

2008-04-01 Thread GAIL
In matlab, prctile(x, p) returns the same kind of vector as p (row or column), whereas octave always returns a column vector. I think matlab's behavior is more logical. G. - Check out the new SourceForge.net Marketplace. It

Re: [OctDev] [Fwd: sumskipnan(x, dim) aborts octave for inappropriate dim]

2008-03-07 Thread GAIL
On 02/29/2008 10:57 AM, Søren Hauberg wrote: > Can you try again with the SVN version? (you can download it from > http://octave.svn.sourceforge.net/viewvc/*checkout*/octave/trunk/octave-forge/extra/NaN/src/sumskipnan.cc) > I've just commited some changes that checks the input. This should > remove

[OctDev] [Fwd: sumskipnan(x, dim) aborts octave for inappropriate dim]

2008-02-29 Thread GAIL
sorry. I misinterpreted the warning about "matrices" (which seems to imply 2-dimensionality). Original Message Subject: sumskipnan(x,dim) aborts octave for inappropriate dim Date: Fri, 29 Feb 2008 09:36:06 +0100 From: GAIL <[EMAIL PROTECTED]>

[OctDev] sumskipnan(x,dim) aborts octave for inappropriate dim

2008-02-29 Thread GAIL
For x = rand(3,1), octave produces the following: octave:> sumskipnan (x,3) warning: SUMSKIPNAN.OCT supports only real double matrices. octave: /usr/local/include/octave-3.0.0/octave/dim-vector.h:112: octave_idx_type& dim_vector::dim_vector_rep::elem(int): Assertion `i >= 0 && i < ndims' failed

[OctDev] new dlmread: segfault

2008-02-06 Thread GAIL
Let foo.dat be 1 2 1 2 1 2 3 Then with the new dlmread.cc (rev. 4606) octave segfaults when I do octave> for i=1:100, dlmread("foo.dat"), endfor G. - This SF.net email is sponsored by: Microsoft Defy all challenges. Micros

Re: [OctDev] dlmread.cc, rev. 3550

2008-02-05 Thread GAIL
On 02/05/2008 02:10 PM, David Bateman wrote: > GAIL wrote: >> rev. 3550, i.e. the two additional lines: >> >> while ( !(sep_is_next(linestrm, sep) || linestrm->eof()) ) >> linestrm->get(); >> >> breaks my dlmread (using octave-3.0.0). With it,

[OctDev] dlmread.cc, rev. 3550

2008-02-05 Thread GAIL
rev. 3550, i.e. the two additional lines: while ( !(sep_is_next(linestrm, sep) || linestrm->eof()) ) linestrm->get(); breaks my dlmread (using octave-3.0.0). With it, only the first column is returned of any file. G.