[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List functions defined from within current scope
From: |
PetrSt |
Subject: |
Re: List functions defined from within current scope |
Date: |
Mon, 18 Mar 2013 03:31:14 -0700 (PDT) |
I suppose all user-defined functions should be present in the current
workspace as function handles. If so, then "whos" returns structure with one
of the fields "class". Comparing class field to string 'function_handle'
should return the logical index matrix. It could look some like this:
wrks = whos;
mask = strcmp({wrks.class},'function_handle');
fun_names = wrks(mask).name
--
View this message in context:
http://octave.1599824.n4.nabble.com/List-functions-defined-from-within-current-scope-tp4650574p4650914.html
Sent from the Octave - General mailing list archive at Nabble.com.