Effacer les filtres
Effacer les filtres

Problem with matlab; error opening functions

32 vues (au cours des 30 derniers jours)
lefteris
lefteris le 8 Juil 2024 à 7:58
Réponse apportée : Image Analyst le 8 Juil 2024 à 17:50
In the last days, there is a big problem with Matlab in my computer. Almost anything I try to execute there is an error message.
Even if I try to open matlab functions, there is the following message:
Error using msgbox (line 80)
Bad value for text property: 'Interpreter'
Error in errordlg (line 47)
handle = msgbox(ErrorStringCell,DlgName,'error',Replace);
Error in uiopen (line 194)
errordlg(err);
Could you please hepl me? I installed some toolboxes, and maybe there was the problem, I am using Matlab 2024a
Thanks in advance.
  4 commentaires
lefteris
lefteris le 8 Juil 2024 à 8:46
Déplacé(e) : Voss le 8 Juil 2024 à 16:11
Sorry for the inconvenience, I just paste the toolbox folders, not install.
Yes, I changed matlab search path, and from that point the problem comes.
Steven Lord
Steven Lord le 8 Juil 2024 à 17:33
Which toolboxes did you install between the last time the code worked and the first time it threw this error?
Which release of MATLAB are you using? I see the line of code you posted in the errordlg.m function in release R2023b, but it is not on line 47.
What does this code show?
which -all errordlg
/MATLAB/toolbox/matlab/uitools/errordlg.m
which -all msgbox
/MATLAB/toolbox/matlab/uitools/msgbox.m
My suspicion is that one of those commands will show a non-MathWorks version of one of those functions.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 8 Juil 2024 à 17:50
Simply reinstall the complete version. Do NOT "paste the toolbox folders, not install." Evidently that doesn't work, as you found out. I don't even know what folders you copied and pasted, but you don't have to do that -- the installation takes care of everything for you.
Don't change the MATLAB path for any of the built-in installed folders. And don't modify it to add folders from any prior/old version you may still have on your system. Only add folders for your own custom folders with the Set Path button on the tool ribbon. And make sure none of your custom m-files have the same names as any of the built-in functions, like make sure you don't have your own msgbox.m file for example.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing 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