Update nntrain.m
Merge pull request #24 from mohsenali/patch-1

Update nntrain.m