From: Aino on 10 Jun 2010 12:44 Dear Jan, thank you for your help. I tried the code, but unfortunately it only slowed my code. Perhaps because M is so small? I'm having trouble of converting my seg_i to a sliced variable, could anyone help me with that? (I seem to have difficulties getting my post trough, I hope this one doesn't come as a double..) Best Regards, Aino "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hur1uk$qtl$1(a)fred.mathworks.com>... > Dear Aino! > > > if max(abs(seg_i-seg_j))<r > > You could try to use anyExceed to avoid the explicte creation of the temporary vectors in this line: > http://www.mathworks.com/matlabcentral/fileexchange/27857 > > E.g.: > mr = -r; > ... > if anyExceed(seg_i - seg_j, mr, r) > > Good luck, Jan
From: Aino on 10 Jun 2010 13:22 I forgot to type "matlabpool" before I ran the code.. 9s! It is getting closer.. (Does anyone know what to do with the double posts?) -Aino :)
From: Oleg Komarov on 10 Jun 2010 15:01 "Aino" <aino.tietavainen(a)removeThis.helsinki.fi> wrote in message <hur6vv$42a$1(a)fred.mathworks.com>... > I forgot to type "matlabpool" before I ran the code.. 9s! It is getting closer.. > > (Does anyone know what to do with the double posts?) > > -Aino :) Yes. After posting don't hit the go back button but follow the link. Other actions would be to write to the admins but I wouldn't bother them for that. oleg
From: Aino on 10 Jun 2010 15:56 Thank you, will make sure I use the right button (well see soon if that works). -Aino "Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <hurcpj$t31$1(a)fred.mathworks.com>... > "Aino" <aino.tietavainen(a)removeThis.helsinki.fi> wrote in message <hur6vv$42a$1(a)fred.mathworks.com>... > > I forgot to type "matlabpool" before I ran the code.. 9s! It is getting closer.. > > > > (Does anyone know what to do with the double posts?) > > > > -Aino :) > > Yes. After posting don't hit the go back button but follow the link. > > Other actions would be to write to the admins but I wouldn't bother them for that. > > oleg
First
|
Prev
|
Pages: 1 2 Prev: Help on conditional statement Next: minimum value from two matrix>>how? |