1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Usage
Starting with version 1.11, FreeMat now supports function
handles, or function pointers. A function handle is an alias
for a function or script that is stored in a variable.
First, the way to assign a function handle is to use the
notation
handle = @func
where func is the name to point to. The function func must
exist at the time we make the call. It can be a local
function (i.e., a subfunction). To use the handle, we can
either pass it to feval via
[x,y] = feval(handle,arg1,arg2).
Alternately, you can the function directly using the
notation
[x,y] = handle(arg1,arg2)
* FreeMat_Documentation
* Variables_and_Arrays
* Generated on Thu Jul 25 2013 17:18:30 for FreeMat by
doxygen_ 1.8.1.1
|