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

feval (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

feval(f)

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

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

Description

Executes a function you specify in a string. [c, d, ...] = feval(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 = 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)

Related Topics

eig
eval
ezplot
fsolve
fzero
inv
rand
sin


Resources


 

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