Observations about the universe, life, Lausanne and me

Tuesday, May 18, 2010

Public Service Announcement

Om nom nom, the subfunction eats your counter.
MATLAB does not protect the namespace in subfunctions. If you have a loop with a counter called i in the main function and you call a subfunction that has also a loop that uses i, hilarity will ensue.
Also, hours of debugging.
That is all.

1 comment:

  1. Hey, Boris, if you want a copy of my paper, let me know stephanieebarrearthlinknet. It's been vetted and approved for public and international audiences.