code matlab lab2