[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sparse
From: |
David Bateman |
Subject: |
Re: sparse |
Date: |
Mon, 06 Nov 2006 20:57:03 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Zeynep wrote:
> Hi all,
>
> I am brand new to Octave. The code below works in
> Matlab. However, I couldn't get it to work in Octave.
> I get the error message "sparse row index out of
> range".
> (I don't see right now why it would be out of range.)
>
> y = sparse(y);
> ycase = (sum(y,2)==1);
> y1= y((ycase==1),:);
>
> I have been trying to figure out if there is a
> difference between sparse/octave and sparse/matlab but
> I haven't come up with anything so far.
>
> I'd appreciate if you shared your experiences or
> suggestions on this with me.
>
> Thanks.
>
> Zeynep Kalaylioglu, Ph.D.
>
Just trying a naive case where y = randn(3), I couldn't generate an
error with octave 2.9.x? What version of octave are you using? What is a
value of "y" that gives you problems?
D.
- sparse, Zeynep, 2006/11/06
- Re: sparse, Quentin Spencer, 2006/11/06
- Re: sparse,
David Bateman <=