Test in MatLab (not work)