[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call a function by name?
From: |
Geraint Paul Bevan |
Subject: |
Re: Call a function by name? |
Date: |
Sat, 24 Jul 2004 11:09:23 +0100 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040306) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
edA-qa mort-ora-y wrote:
| Is there anyway to call a function by name in Octave?
|
| For example:
|
| function q = myfunc( inner )
| q = call( inner, 251, 2, 3 )
| endfunction
|
| myfunc( "sqrt" )
|
| I need this to do some plotting and some integration-like calculations.
|
The function 'feval' will do what you want.
- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iEYEARECAAYFAkECNVMACgkQcXV3N50QmNP2kgCeOEYcP9hWKpUczMkAyG408ABO
3UMAn0cnpFj0sL+3vhXzkGKpeEQAENdQ
=kG9m
-----END PGP SIGNATURE-----
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------