select

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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