You can follow the steps given at following link for uninstalling MATLAB:
https://in.mathworks.com/matlabcentral/answers/131519-how-do-i-perform-a-clean-installation-of-matlab-on-a-windows-system
In case the step "Uninstall MATLAB from the add/remove programs menu in Windows" gives error, proceed with the next steps.
