select
From STX Wiki
< Programmer Guide | Command Reference | EVAL
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.
|}