Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

evalfn (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-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, ...).

Details

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

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

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