Clear Filters
Clear Filters

Problem with matlab; error opening functions

11 views (last 30 days)
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 Comments
lefteris
lefteris on 8 Jul 2024
Moved: Voss on 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.
Steven Lord
Steven Lord on 8 Jul 2024
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.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 8 Jul 2024
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.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!