That's strange. In my version---R2008b---the correct answer ans = is returned.
Responded 6 years ago
Given a and b, return the sum a+b in c.
3 years ago
Hey, Probably you should change else if into elseif. Otherwise, a new if block is created. Best, Joris
Responded 5 years ago