Path: news.mathworks.com!not-for-mail
From: "Lorenzo Quadri" <quadrilo_sub_r@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: very large array
Date: Mon, 24 Jun 2013 13:26:08 +0000 (UTC)
Organization: Universit&#224; statale di Milano
Lines: 10
Message-ID: <kq9hdf$bsa$1@newscl01ah.mathworks.com>
Reply-To: "Lorenzo Quadri" <quadrilo_sub_r@gmail.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1372080368 12170 172.30.248.35 (24 Jun 2013 13:26:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 24 Jun 2013 13:26:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4392211
Xref: news.mathworks.com comp.soft-sys.matlab:798096

Hi I'm a newbie in matlab, I have a very large array (circa 400 million rows and 7 columns of uint8 type), I've to delete about 100 million elements i tried this kind of operation but it's very very slow.

for i=1:length(dati)
    if (( int ( sum(dati(i,:) ))<355) & range(dati(i,:))>20)
        dati(i,:) = [];
    end
end

I tried to copy elements in an other array but is slow too.
Thx