Copyright Tristan Aubrey-Jones April 2007.
Home Up ( Download )
function v = ifv(t,wt,wf) % IFV shorthand if statement % when the condition t is true (or 1) % returns the value wt, else it returns wf. if t v = wt; else v = wf; end