whats the problem with my matlab code?and how to fix it,than