If you intalled previous matlab then the old path file maybe in your way. delete the
pathdef.m
in your home matlab directory
you can also check mathworks website support
pathdef.m
in your home matlab directory
you can also check mathworks website support