How should I recover.m file of the function in the toolbox?

Mistakenly modified the .m file that came with MATLAB. How should I recover it?
Why doesn't MATLAB make the .m file of the function in the toolbox "read-only" Does anyone know why?Is there any way to change all MATLAB official .m files to "read-only"?

댓글 수: 2

You might need to re-install Matlab unless your OS provides some form of file restore.
Marking files as read-only may not actually sufficiently protect files, since you may want to edit those anyway. In this case you learned you shouldn't open and edit Matlab internal functions.
Sometimes I tracking code goes into the Matlab internal functions.May delete code by mistake!

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

 채택된 답변

Jan
Jan 2023년 6월 25일

0 개 추천

You can ask a colleage for the original file. Of course with some tricks you can find a way to type the file here in the forum also.
Do not work with Admin privileges. Then the m-files in the installation directory are safe.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2023년 6월 23일

댓글:

2023년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by