Why do scripts and functions that ran in 2024b get hung up in 2025a?

Programs not working in 2025a that worked in 2024b.
srdemo()

14 Comments

It is working for me when I test on R2025a for Intel Mac.
Both files appear to run to completion in R2025a from my desktop and within MATLAB answers. Do they hand indefinitely for you? Are you doing anything different than calling these two lines from the command line?
srdemo()
ORBPosition
scint1 = 1×3
0.904875010713031 0.0681211393891931 0.136916779203056
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
scact1 = 1×3
18.0975002142606 1.36242278778386 2.73833558406112
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
scint2 = 1×3
0.249138309961049 0.798918160581652 0.136711029424061
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
scact2 = 1×3
7.47414929883148 23.9675448174496 4.10133088272183
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
scint3 = 1×3
0.67060502310487 0.89736396640441 0.427317834328522
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
scact3 = 1×3
26.8242009241948 35.8945586561764 17.0927133731409
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
Equation solved. fsolve completed because the vector of function values is near zero as measured by the value of the function tolerance, and the problem appears regular as measured by the gradient. Intersection point: 3.83411953476878 30.3102583412839 -14.128340528943
version
ans = '25.1.0.2952844 (R2025a)'
Yes, hangs indefinitely. I have to use Task Manager to exit. Entered srdemo and ORBPosition at the command line like usual. For srdemo, the figure opens with the pop-up and then hangs, see attached. For ORBPosition, the intersection point is calculated but then hangs - no figure window.
Also, it takes MATLAB 1 minute and 5 seconds to load.
@William Blanch: Can you get any graphics working? Have you tried something simple like plot(1:10) or surf(peaks)?
Mr Kraus, I tried surf(peaks) and it still gets hung up. Does R2025a require a better graphics card then R2024b?
I would suggest re-installing MATLAB.
Unless, that is, you happen to be running Linux, in which case it would not astonish me at all if you are running into a conflict with libC.so.6
@William Blanch: I'd reach-out to technical support. The requirements for R2025a are different from R2024b, but I don't think it is as simple as "a better graphics card".
As a sanity check, before you call technical support, try starting a fresh MATLAB instance, then run this code
restoredefaultpath
rehash toolboxcache
plot(1:10)
  • If that fixes things, you may have an issue with an invalid path that is being preserved from an older MATLAB release. For more details, read my answer to this topic.
  • If that doesn't fix things, then contact technical support.
Mr. Kraus
It worked when I ran the code:
restoredefaultpath
rehash toolboxcache
plot(1:10)
Also, srdemo and ORBPosition worked
When I ran:
which -all pathdef
I get:
C:\Program Files\MATLAB\R2025a\toolbox\local\pathdef.m
But when I go to my personal directory:
C:\Users\bjbla\Desktop\MATLAB
It's empty.
I found this having to do with a prior release:
C:\Program Files\MATLAB\_temp_matlab_R2024b_Windows
Is this file suppose to be there?
Also, why does it take so long for MATLAB to load and it might take 3 times before it loads without hanging up.
Thanks for your help so far!
Billy
Now,
restoredefaultpath
rehash toolboxcache
plot(1:10)
is not working.
I'm finding a lot of differences between 2024b and 2025a. Import is different, code execution, configuration, etc. I'm regressing back to 2024b. Good luck!
@William Blanch: If those instructions did not work, then my recommendation is to reach-out to technical support for further assistance.
@Mike Susedik: I'm sorry to hear that you are disappointed with MATLAB R2025a. Please reach-out to MathWorks (either via technical support or via MATLAB Answers) with specific issues you are encountering and we will do our best to keep improving things.
I agree too. I reverted to version 2024b. Too many bugs left. Version 2025a wasn't ready for release.
Startup is very slow. It isn't helpful to display the UI and the command window without a prompt or with one that doesn't accept input. Response to user input is anonyingly slow as well. Using up-arrow to repeat a command is fast but I see "Busy" on the lower left for every input except using up-arrow to repeat the previous command. Even dir is slow.
I don't see any reason to use 2025a. Even opening the editor is slow. Running an demo script using fft() to calculate and plot the transfer function of a few convolved sinusoids is more than 3x slower than 2024b. Most of the slowdown appears to be related to plotting the results. If I calculate the convolution without plotting the result performance is better, but still about 1.5x longer than with 2024a.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2025a

Asked:

on 3 Jun 2025

Commented:

on 15 Aug 2025

Community Treasure Hunt

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

Start Hunting!