adding matlab example