File: functionhandles.mdc

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (29 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
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