|From:||James Sherman Jr.|
|Subject:||Re: vectorize inline function|
|Date:||Sat, 2 Aug 2014 11:56:34 -0400|
How do I vectorize an inline function?
I've already tried searching the web and it seem the vectorize inline
function has been deprecated.
What I want is when I input like x^2*cos(x)-1 it would change to a vectorize
format which is x.^2.*cos(x)-1.
Here's the code I got which doesn't work...
a = input('Enter Function:','s');
f = inline(a);
x = vectorize(f);
Is there an alternative way so I can vectorize a given input function?
Any help or guide would be greatly appreciated.
|[Prev in Thread]||Current Thread||[Next in Thread]|