From: "Jayveer " <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: please help optimize this ('find' is too slow)
Date: Fri, 5 Dec 2008 02:00:20 +0000 (UTC)
Organization: University of Manchester
Lines: 16
Message-ID: <gha1vj$850$>
References: <gh46f4$pg2$> <gh7ror$eno$> <gh7vs8$fgq$> <gh9faq$fb4$> <gh9qmi$l5c$> <gh9ske$6he$>
Reply-To: "Jayveer " <>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1228442420 8352 (5 Dec 2008 02:00:20 GMT)
NNTP-Posting-Date: Fri, 5 Dec 2008 02:00:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1206797
Xref: comp.soft-sys.matlab:505101

lol, so silly of me! you are right! :) thanks loads dude! the processing time went down from 28s to 13s!

however, considering right now i have a simulation running which initially said '10Hrs remaining', 13s is still quite slow coz the function is called 600k+ depending on the model being simulated. 

you seem to have a pretty good understanding of code optimisation. have you got any more ideas how to make this even faster? i'm trying to bring this down to sort of 5s ish for this particular sample data.

this one appears to be the slowest one now -takes 6.7s out of 13s


any ideas?