a)
function result = wholeNumber(tallA) result = (tallA == round(tallA)); end
b)
function result = evenNumber(tallA) result = (wholeNumber(tallA/2)); % eller result = (mod(tallA,2) == 0); end
a)
function result = wholeNumber(tallA) result = (tallA == round(tallA)); end
b)
function result = evenNumber(tallA) result = (wholeNumber(tallA/2)); % eller result = (mod(tallA,2) == 0); end