[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vectorize an extraction
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Vectorize an extraction |
Date: |
Thu, 2 Dec 2010 12:13:46 -0600 |
On 2 December 2010 11:59, keithspg <address@hidden> wrote:
> j=1;
> for i = 1:(size(data,1)-1); # extracting only loaded values loop
> if(data(i,2) > 0.5);
> loaded(j,1)=data(i,1);
> loaded(j,2)=data(i,2);
> j=j+1;
> endif
> endfor
row_index = find( data(1:end-1,2) > 0.5);
loaded = data(row_index, 1:2);
HTH,
- Jordi G. H.