Errors after removal of appdata folder

14 vues (au cours des 30 derniers jours)
Andreas Bernatzky
Andreas Bernatzky le 10 Juin 2019
Commenté : Jan le 11 Juin 2019
Hi,
I accidentaly removed the Appdatafolder on Windows10. After this Matlab behaves nicely said strange.
I am actually writing on a GUI in AppDesigner and Matlab throws Errors. For example the unique() function isn't working properly and other random stuff. (It worked and there were definitely no changes made in the code). I removed just the Appdatafolder.
Can anyone give me some advice how to handle this problem? Or better reconfigure the AppDatafolder. I really won't rewrite all the code because the errors are mainly with some table and cell problems.
Thanks alot!

Réponse acceptée

Jan
Jan le 10 Juin 2019
The question is very vague. "unique() function isn't working properly" doies not contain any detail which would allow to understand, what's going on. "other random stuff" is not clear also.
"I removed just the Appdatafolder" - then please mention, what you call "the Appdatafolder". But actually it does not matter, which folder you mean actually, because the solution will the same in all cases: Restore this folder from your backup. Are you working under Windows? Then the "recent version" will contain the deleted folder.
"I really won't rewrite all the code because the errors are mainly with some table and cell problems." - Why do you think, that any code has to be rewritten? What are "table and cell problems"? What is the relation to the deleted folder?
I'm not sure, if this is a comment or an answer. At least the suggestion to restore the data from the backup is the only way to go. But actually the question is too vague to be answered and maybe this question should be closed until useful details are mentioned.
  3 commentaires
Jan
Jan le 11 Juin 2019
Maybe I have a solution for you, which works in seconds, if you only post, which "appdata" folder you mean. If you mean %APPDATA% of the operating system, which is C:\User\YourAccount\AppData\Roaming , you will have more troubles than just problems in Matlab. Or you mean its parent folder ...\AppData\. But then a crash of the computer is more likely than "problems with unique()".
If you mean the folders I've mentioned, re-installing Matlab reduces the chance to be able to restore the contents of the folders from the shadow copies of the operating system. Currently it looks, like you are making the problem worse.
Again: please mention, what you call "the Appdatafolder".
Andreas Bernatzky
Andreas Bernatzky le 11 Juin 2019
Hey yes,
it was the %APPDATA%-Folder. Just to make sure not getting any Errors in the Future I set up a new OS because I got trouble with some C++ Code too.

Connectez-vous pour commenter.

Plus de réponses (1)

Andreas Bernatzky
Andreas Bernatzky le 11 Juin 2019
Reinstallation of Matlab solved the problem. And remember never ever touch the appdata folder on Windows.
  1 commentaire
Jan
Jan le 11 Juin 2019
As said already, this folder should be recoverable from the "Previous Versions" of Windows. You did enable the File Versions, didn't you?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by