Owning Class: basic
Requires: MathScript RT Module
evalfn(f)
[c, d, ...] = evalfn(f)
[c, d, ...] = evalfn(f, a, b, ...)
Legacy Name: feval
Executes a function you specify in a string. [c, d, ...] = evalfn(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. |
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | No |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
X = evalfn('rand', 2, 2)
Y = evalfn('inv', X)
F = 'sin';
C = evalfn(F, [1, 2, 3])
A = evalfn('rand', 2, 2)
[V, D] = evalfn('eig', A)