update the matlab code

Signed-off-by: eldrad <nikofinas@gmail.com>