From: dpb on
Matt J wrote:
> dpb <none(a)non.net> wrote in message
> <hnraj9$oqk$1(a)news.eternal-september.org>...
>
>> Unfortunately, here I see
>>
>> >> help arrayfun
>>
>> arrayfun.m not found.
>>
>> >> % :( Wish a retired geezer could justify the upgrade cost...
>>
>> I've complai^h^h^h^h^hpled before but TMW doesn't seem to have much
>> pity... :)
> ====================
>
> I wouldn't upgrade for arrayfun alone. It's been observed in various
> threads that it rarely outperforms a for-loop speed-wise.

No, I wouldn't either although it does enable nice, concise code in
places such as this...

There are quite a few other niceties that would be nice, however; but as
retired fogey no longer even consulting and not likely to pick up again
it just can't be justified simply mostly to keep up w/ c.s-s.m...

--
From: Matt Fig on
dpb <none(a)non.net> wrote in message <hnraj9$oqk$1(a)news.eternal-september.org>...
> Matt J wrote:
> >
> > arrayfun(@(s,e) mean(A(s:e)),START,END)
>
> Yeah, the "modern" way to implement my earlier "straightahead" sol'n...
>
> Unfortunately, here I see
>
> >> help arrayfun
>
> arrayfun.m not found.
>
> >> % :( Wish a retired geezer could justify the upgrade cost...
>
> I've complai^h^h^h^h^hpled before but TMW doesn't seem to have much
> pity... :)
>
> --


Do you at least have BSXFUN? That is one of the 'newer' functions I really like. Although I am finally getting used to ACCUMARRAY too.
From: dpb on
Matt Fig wrote:
> dpb <none(a)non.net> wrote in message
> <hnraj9$oqk$1(a)news.eternal-september.org>...
>> Matt J wrote:
>> > > arrayfun(@(s,e) mean(A(s:e)),START,END)
>>
>> Yeah, the "modern" way to implement my earlier "straightahead" sol'n...
>>
>> Unfortunately, here I see
>>
>> >> help arrayfun
>>
>> arrayfun.m not found.
>>
>> >> % :( Wish a retired geezer could justify the upgrade cost...
>>
>> I've complai^h^h^h^h^hpled before but TMW doesn't seem to have much
>> pity... :)
>>
>> --
>
>
> Do you at least have BSXFUN? That is one of the 'newer' functions I
> really like. Although I am finally getting used to ACCUMARRAY too.

No, I'm at R12 (roughly 10 yr ago when left last consulting gig thru an
employer by which could amortize license cost. Bought/transferred the
license from them at the time, but it's so out of date and w/ the policy
of having to be current, it's just too dear to even consider at this
point. At some point I might see about using my work w/ local CC as a
way to finagle a student license; that's about the only way I see
getting any newer unless somebody calls out of the blue w/ an offer I
can't refuse to consult again...but I've been back on the farm and away
from all former clients for so long now most all of them who were still
working then have or are also retiring now, too. So, we fade... :)

--
From: Bruno Luong on
CSA = [0 cumsum(A)];
AVERAGES = (CSA(END+1)-CSA(START))./(END-START+1)

% Bruno

PS: using END as variable name is a bad idea
From: Doug Schwarz on
dpb wrote:
> Matt Fig wrote:

>> Do you at least have BSXFUN? That is one of the 'newer' functions I
>> really like. Although I am finally getting used to ACCUMARRAY too.
>
> No, I'm at R12

That's one I can help you with. Try my bsxfun substitute. I've never
tried it with R12, but I think it should work. If not, let me know.

<http://www.mathworks.com/matlabcentral/fileexchange/23005>


--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.