Make matlab log to different files in each example.

Signed-off-by: Valentin Plugaru <valentin.plugaru@gmail.com>