Ex1

Hi.
This is exercise1 unit tests from forum thread https://class.coursera.org/ml-005/forum/thread?thread_id=334#post-5327

Works fine in Octave.