Figures saved with MATLAB New Desktop cannot be opened in MATLAB Online or on the local computer with MATLAB Old Desktop

5 views (last 30 days)
Hello,
I have some figures that I saved in MATLAB R2024b with New Desktop on my work computer. When I try to open the figure on my home computer using MATLAB R2024b with Old Desktop, it freezes at FigureController.m at the sendACT function. The exact same thing happens with MATLAB Online too. It freezes at the exact same point. However, if I switch to New Desktop on my local computer, I can see the figures again. The figures are not big at all, they are 100kB maximum.
Is there a solution to this?
  2 Comments
Rik
Rik on 22 Jan 2025

Posting an example should help pinpoint the issue. Can you post code that produces a fig file with this problem?

Berke
Berke on 22 Jan 2025
Edited: Berke on 22 Jan 2025
Any figure seems to cause this problem. For example I switched to the New Desktop version 24.2.0 and ran the following code:
x = -5:0.1:5;
y = sin(x);
figure;
plot(x, y);
savefig("sine.fig");
After switching back to the Old Desktop, I can't open 'sine.fig' anymore. Same thing also happens in MATLAB Online. Possibly a backwards compatibility issue.
A workaround I found is opening the figure with openfig("sine.fig", 'invisible') in invisible mode, reading the data and plotting the figure again.

Sign in to comment.

Accepted Answer

Cris LaPierre
Cris LaPierre on 22 Jan 2025
This is a known issues with the beta version. Development is aware, but there is currently no fix for this in R2024b.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!