Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
fa wu
fa wu am 23 Jun. 2023
Kommentiert: fa wu am 20 Jul. 2023
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 Kommentare
Rik
Rik am 23 Jun. 2023
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.
fa wu
fa wu am 23 Jun. 2023
Sometimes I tracking code goes into the Matlab internal functions.May delete code by mistake!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 25 Jun. 2023
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.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by