This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Jean-Marie Sainthillier
on 29 Apr 2014
Wonderful solution.
Technically, I don't understand where ans is created. If I break this code, I obtain an error (ans is undefined). It seems that the line 4 create ans but only in the function (?).
Khaled Hamed
on 30 Apr 2014
Hi Jean-Marie. I haven't bee around for some time now. Well, that turned out to be a bug...
http://www.mathworks.com/matlabcentral/answers/46972-is-this-a-possible-matlab-bug-further-strange-behavior
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!