|
From: | Ismael Núñez-Riboni |
Subject: | Re: Extracting matrix rows that meet a condition |
Date: | Wed, 23 May 2012 22:11:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
What I need to do is to extract the rows that contain numbers that are either x< 0 or x> 1 and write those intact to a new *.txt file.
If x is your matrix try: [i,j] = find(x<0 | x>1); The rows you want to save are x(i,:).
[Prev in Thread] | Current Thread | [Next in Thread] |