From: Emil on
Thanks for your inputs. My code works somewhat faster now. So can I conclude that the take-home message here is that for-loops actually are the way to go at times in terms of performance?
From: Matt Fig on
"Emil " <emil4ml(a)gmail.com> wrote in message <i2q7s6$bqo$1(a)fred.mathworks.com>...
> Thanks for your inputs. My code works somewhat faster now. So can I conclude that the take-home message here is that for-loops actually are the way to go at times in terms of performance?


.... as has been shown many(!) times on this newsgroup.
From: Bruno Luong on
"Emil " <emil4ml(a)gmail.com> wrote in message <i2ok2m$75q$1(a)fred.mathworks.com>...
>When is it, performance-wise, an advantage to use arrayfun?

With few exception, arrayfun is cellfun are deceit features introduced by Mathworks few years ago. They are essentially disguised for-loop. Similar topic has been discussed in the pass:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/253815

Bruno
First  |  Prev  | 
Pages: 1 2
Prev: b2bsharing
Next: Dynamic quantile regression