Member of the basic class.
feval(f)
[c, d, ...] = feval(f)
[c, d, ...] = feval(f, a, b, ...)
Executes a function you specify in a string. [c, d, ...] = feval(f, a, b, ...) is equivalent to [c, d, ...] = f(a, b, ...).
| Name | Description |
| f | Specifies a LabVIEW MathScript function or a user-defined function. f is a string, such as 'sin'. |
| a, b | Specify the inputs for the function you specify in f. |
| Name | Description |
| c, d | Return the results from executing the function you specify in f. |
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
X = feval('rand', 2, 2)
Y = feval('inv', X)
F = 'sin';
C = feval(F, [1, 2, 3])
A = feval('rand', 2, 2)
[V, D] = feval('eig', A)