matlab code about PLA