[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sparse

From: Quentin Spencer
Subject: Re: sparse
Date: Mon, 06 Nov 2006 10:54:41 -0600
User-agent: Thunderbird (X11/20061027)

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
(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.


Zeynep Kalaylioglu, Ph.D.

You didn't say which version of octave you're using. Sparse matrices are best supported in version 2.9.9, so you should be using that to test sparse features. I would test your code in 2.9.9, but you didn't provide any code to generate the matrix y.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]