function too_young = under_age(age,limit)limit = 21if age <= limit too_young = true;elseif age >= limit too_young = false;else fprintf('invalid\n')end
MATLAB: Write a function called under_age that takes two positive integer scalar arguments: age that represents someone’s age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
agehomeworkMATLABsoft-lock
Best Answer