Why does my m file open too slowly?

Hi, I have a problem with opening m file.
After I change my cpu and gpu, m file opening takes about a minute.
I also reinstalled the matlab, but it didn't solve anything.
Could it be a problem to just use Window without activation?
Please help

댓글 수: 4

Matt J
Matt J 2022년 2월 21일
Did you do a stress test on your hard drive? Maybe the bus connections or the hard drive itself were physically damaged when you swapped the processors.
seokwon OH
seokwon OH 2022년 2월 21일
Thank you for your answer, but other files or programs don't have problem, only m file has
AndresVar
AndresVar 2022년 2월 21일
@seokwon OH I am sorry idk what the problem is but I am curious if you can answer these questions:
1) how do you open the file? Is matlab already open? Is it via "Open" button or clicking in the "current folder". Or is matlab closed and you double click the file. What about if you type "edit <filename>" in command window.
2) what about if the file is renamed with different extension like .txt or what about .mlx files (also slow?)
3) If you open the .m file with notepad or vscode is it fast? or just as slow
4) How big is the .m file
5) what version of matlab
seokwon OH
seokwon OH 2022년 2월 21일
Hi
1) I open .m file via double clicking. And i just open by "open" button , it is still too slow. Both case was implemented while matlab(2021b) is already open. Edit<filename> took many ,too.
2)Renamed txt or mlx extension is very fast
3)It's fast (a second maybe)
4)It's not that big(about 5KB on average)
5)2021b
Thank you
plus) when I open .m file in specific folder, other .m file in that folder doesn't take long(it's fast). But if i open .m file in different folder at the same time, it takes too long.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2022년 2월 21일

1 개 추천

Do you have a folder in Matlab's PATH, which is stored on a network drive or e.g. Dropbox? Then Matlab might scan the remote folder during opening the file. Accoring to the network speed, this can take a lot of time.
Try to reset the PATH temporarily.

댓글 수: 1

seokwon OH
seokwon OH 2022년 3월 16일
No, those are not on my matlab path. Recently I migrated windows and file. Is it can be a problem?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

태그

질문:

2022년 2월 21일

댓글:

2022년 3월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by