I installed different versions of MATLAB. After successful installation, when open the command or editor window, it is freezed/hanged. Before that it was working properly and suddenly start facing such hanging situation.
Thanks for your answer, currently, I resolved it by installing the fresh window. If this situation raised again then one would say its compatibility issue.