I figured out the issue, there was another software using the LM_LICENSE_FILE which was causing matlab to become unresponsive. As I am not using the other software anymore, deleting the LM_LICENSE_FILE variable solved it.
MATLAB unresponsive on startup
    조회 수: 26 (최근 30일)
  
       이전 댓글 표시
    
Whenever I start Matlab, it is unresponsive for around 3-5mins. So far I have tried the following 
- removeDriveFromHistory - As someone pointed out this could help.
 - Reinstalling Matlab
 
None of this has worked. I also tried to reset the preferences, to make sure corrupted preferences aren't causing it. But no luck. Can anyone please help me with it?
Machine Specs :- Intel i7-11 gen, 16 GB Ram, SSD. Windows installation
댓글 수: 0
채택된 답변
  Dhruv Thakkar
 2022년 6월 6일
        댓글 수: 2
  Image Analyst
      
      
 2022년 6월 6일
				Some questions:
- What was the actual full name of the license file that the other program was using?
 - What was the name of the other program that was using your MATLAB license file?
 - Why would some software, unrelated to MATLAB, be using a file that is unique to MATLAB?
 
추가 답변 (1개)
  Jan
      
      
 2022년 6월 6일
        
      편집: Jan
      
      
 2022년 6월 6일
  
      Try to recreate the preferences folder:
C:\Users\<USERNAME>\AppData\Roaming\MathWorks\MATLAB\<VERSION>
Rename this folder and start Matlab. It is created with default values the first time. Does this change the delay?
Your hard disk might have a damage and reading a certain file can cause severe activities. Check this with CHKDSK and a tool like CrystalDiskInfo.
What is the contents of your startup.m file? Does it contain any tedious commands?
참고 항목
카테고리
				Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!