FASTIF Fast if function.

Usage: >> res = fastif(test, s1, s2);

Input:
test   
logical test with result 0 or 1
s1   
result if 1
s2   
result if 0

Output:
res   
s1 or s2 depending on the value of the test

See the matlab file fastif.m (may require other functions)

Back to functions