[Top][All Lists]

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

using a function as a parameter

From: José Miguel Pereira Tavares
Subject: using a function as a parameter
Date: Fri, 15 Mar 2002 22:25:09 +0000

        Hi all!

        I'm new to octave (and never used mathlab) and I would like to know if 
it's possible to pass a function as a parameter to another function, and 
if sou how?

        For example, if I define a function as:

        function xpto = f(x)
        xpto = x^2;

        How could I plot this function? Something like

        plot(f(x)) ????

        Another question, is octave capable of finding the derivative of a 
function (can it find it's expression? or it's value for a given x?)

        I thank you in advance for your time and patience.

                                        Miguel Tavares

        I love the deadlines.
        I love the whooshing sound they make as they pass by.

                                Douglas Adams

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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