help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vectorize inline function


From: isotrex
Subject: vectorize inline function
Date: Fri, 1 Aug 2014 22:40:52 -0700 (PDT)

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. 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/vectorize-inline-function-tp4665884.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]