help-octave
[Top][All Lists]
Advanced

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

Re: Extracting matrix rows that meet a condition


From: Knof
Subject: Re: Extracting matrix rows that meet a condition
Date: Thu, 24 May 2012 13:01:47 -0700 (PDT)

> Then forget about the function "find", what you want to do is:
>
>  ii = (x > 0 & x < 1);
>
> The rows you want to save are:
>
> x((sum(ii') == 3)',:)
>
> They are only 619...

Something is still broken somewhere as 426 rows match the first condition and 619 rows match the second condition.
426 + 619 = 1045 and my matrix only has 1008 rows.

View this message in context: Re: Extracting matrix rows that meet a condition
Sent from the Octave - General mailing list archive at Nabble.com.

reply via email to

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