Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

evalfn (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

evalfn(f)

[c, d, ...] = evalfn(f)

[c, d, ...] = evalfn(f, a, b, ...)

Legacy Name: feval

Description

Executes a function you specify in a string. [c, d, ...] = evalfn(f, a, b, ...) is equivalent to [c, d, ...] = f(a, b, ...).

Examples

Inputs

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.

Outputs

Name Description
c, d Return the results from executing the function you specify in f.

Details

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

Examples

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)

Related Topics

eig
eval
fsolve_zero
fsolve_zeros
inv
plotf
rand
sin


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit