Programmer Guide/Command Reference/EVAL/select: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)

Revision as of 18:31, 18 November 2010

select

The select subcommand performs a conditional assignment. The arguments x and t are compared and the result yl (x <= t) or yh (x > t) is assigned. The result type is the same as x. This is a subcommand of the EVAL command.

Usage: select(x, t, y1, yh)
Parameters:
x The input (vector)
t The threshold value (vector or scalar)
y1 t[i] (vector or scalar)
yh t[i] (vector or scalar)


| |- |Return Type: |The same as x. |}

Navigation menu

Personal tools