[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
newbie: check if variable is a function handle
From: |
Alex Colunar |
Subject: |
newbie: check if variable is a function handle |
Date: |
Thu, 6 May 2010 04:55:16 -0700 (PDT) |
Hello,
I would like to know how to determine whether a given variable holds a
function handle.
I have noticed that Octave contains plethora of functions for determining if
a variable is of given type, but I cannot find one for function handles.
What I want to do in general is to write a function taking as an argument
another scalar function: as a string, a function handle, or a vector with
function arguments and values in given points (depending on user's
convenience). If the supplied variable is none of above, I want the function
to display error.
Best Regards
Alex
--
View this message in context:
http://octave.1599824.n4.nabble.com/newbie-check-if-variable-is-a-function-handle-tp2132496p2132496.html
Sent from the Octave - General mailing list archive at Nabble.com.
- newbie: check if variable is a function handle,
Alex Colunar <=