iif - GavriYashar/Matlab-Utilities GitHub Wiki
Simple function to create one line if statements.
usage example
Typically you would write something like this:
if foo == bar
var = "something";
else
var = "something else";
end
iif
shortens it to:
var = iif(foo == bar, "something", "something else");