Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: 2d vectorization challenge
Posted:
Apr 19, 2009 2:44 PM
|
|
> It does generalize to an arbitrary function that is vectorized to operate on scalar elements of an array.
Aha. 'Arbitrary function' <> 'arbitrary function that is vectorized to operate on scalar elements of an array'.
> The sine function is the example you posed.
I also wrote about sine standing in for an arbitrary function. (And - we are back to first question :)).
Replace 'sin(x)' with 'abracadabra(x)' - now what do I do?
I wished to check that this snippet - nay, pattern - could not be re-engineered using "arrayfun" or in another way.
It doesn't look like it can, but many thanks to John for taking a look.
|
|
|
|