is there a way of typing for if like:
var = (cond) ? true : false;
or do we have to use this format?
if (cond) true else
I use this style frequently:
cond = what < ever; n = getfield([23,42], {1+(what < ever)}) % for any 1x1-data s = cell2mat(getfield({'no','yes'}, {1+(what < ever)})) % for nonuniform
it's compact enough to not require a helper function