Problem with matlab; error opening functions

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 Kommentare

Aquatris
Aquatris am 8 Jul. 2024
Did you by any chance moved the matlab folder manually or messed with the matlab paths?
Stephen23
Stephen23 am 8 Jul. 2024
"I installed some toolboxes, and maybe there was the problem"
How exactly did you "install" them? Hopefully not under the MATLAB installation folder (or that of any other application).
Have you made any changes to the MATLAB search path?
lefteris
lefteris am 8 Jul. 2024
Verschoben: Voss am 8 Jul. 2024
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.
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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 8 Jul. 2024

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by