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